Skip to content

Commit

Permalink
Try to make the CI pass
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Dec 17, 2019
1 parent fb7e1a0 commit ccd3ce5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ def test_versions(debug):
delta = timedelta(days=3)
assert r._versions(min_age=delta) == {"1.2.3": "abc", "2.3.4": "bcd"}
gh_repo.get_commits.assert_called_once()
[call] = gh_repo.get_commits.mock_calls
assert not call.args and len(call.kwargs) == 1 and "until" in call.kwargs
assert isinstance(call.kwargs["until"], datetime)
calls = gh_repo.get_commits.mock_calls
assert len(calls) == 1
c = calls[0]
assert not c.args and len(c.kwargs) == 1 and "until" in c.kwargs
assert isinstance(c.kwargs["until"], datetime)
gh_repo.get_contents.assert_called_with("path/Versions.toml", ref="abcdef")
debug.assert_not_called()
gh_repo.get_commits.return_value = []
Expand Down

0 comments on commit ccd3ce5

Please sign in to comment.