Skip to content

Commit

Permalink
fix: correct the assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jun 28, 2024
1 parent 41edcf3 commit 16e7217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: "Bandit"

on:
workflow_dispatch:
push:
branches: [ "master" ]
paths:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_steam_workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def test_get_server_info_success(requests_mock):
json={"servertime": 1234567890}
)
result = get_server_info("dummy_api_key")
if result is not None:
raise AssertionError("Result should be None")
if result is None:
raise AssertionError("Expected result to be not None")
if result is None or "servertime" not in result:
raise AssertionError("Expected 'servertime' to be in result")

Expand Down

0 comments on commit 16e7217

Please sign in to comment.