Skip to content

Commit

Permalink
fix: update tests for latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Apr 7, 2023
1 parent 40a838b commit e797882
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tests/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ def test_github_account():
assert account.login == "mhucka"
assert account.type == "User"

account = github_account('55fake99zxy100')
assert not account
try:
account = github_account('55fake99zxy100')
except iga.github.GitHubError:
pass
else:
assert False


def test_github_account_repo_tag():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_github_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_mocking_account(mocker):
mocked_function.return_value = GitHubAccount(account_json)
value = mocked_function()
assert isinstance(value, GitHubAccount)
assert value.url == 'https://api.github.com/users/digitaldogsbody'
assert value.url == 'https://api.github.com/users/datacite'


def test_mocking_repo_file(mocker):
Expand Down

0 comments on commit e797882

Please sign in to comment.