Skip to content

Commit

Permalink
TST: Annotate test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Oct 22, 2024
1 parent 0143f25 commit ff798bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migas/tests/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ def test_migas_add_get():
# ensure kwargs can be submitted
res = add_breadcrumb(test_project, migas.__version__, wait=True, language='cpython', platform='win32')
assert res['success'] is True
# this breadcrumb is not valid
# this breadcrumb is not valid, so won't be tracked
res = add_breadcrumb(test_project, migas.__version__, wait=True, status='wtf')
assert res['success'] is False

# 2 crumbs should be present on the server, both from the same user
res = get_usage(test_project, start=today)
assert res['success'] is True
all_usage = res['hits']
assert all_usage == 2

res = get_usage(test_project, start=today, unique=True)
assert res['success'] is True
assert all_usage >= res['hits'] > 0
assert all_usage > res['hits'] > 0

res = get_usage(test_project, start=future)
assert res['success'] is True
Expand Down

0 comments on commit ff798bb

Please sign in to comment.