MCPcopy Create free account
hub / github.com/Shpota/github-activity-generator / test_commits

Method test_commits

test_contribute.py:18–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.assertTrue(1 <= contribute.contributions_per_day(args) <= 20)
17
18 def test_commits(self):
19 contribute.NUM = 11 # limiting the number only for unittesting
20 contribute.main(['-nw',
21 '--user_name=sampleusername',
22 '--user_email=your-username@users.noreply.github.com',
23 '-mc=12',
24 '-fr=82',
25 '-db=10',
26 '-da=15'])
27 self.assertTrue(1 <= int(check_output(
28 ['git',
29 'rev-list',
30 '--count',
31 'HEAD']
32 ).decode('utf-8')) <= 20*(10 + 15))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected