Skip to content

Commit

Permalink
Fix count votes integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Dec 5, 2024
1 parent 934e17d commit e10b8ea
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests_new/integration_tests/modules/vote/test_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,5 @@ def test_count_upvote_invalid(client1, vote1, session_s3_dataset1):
)


def test_count_votes(client2, vote1, session_s3_dataset1):
count = count_upvotes(client2, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE)

# Assert incremeent by 1
upvote(client2, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE, True)
assert_that(count_upvotes(client2, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE)).is_equal_to(count + 1)

# Assert decrement by 1
upvote(client2, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE, False)
assert_that(count_upvotes(client2, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE)).is_equal_to(count)
def test_count_votes(client1, vote1, session_s3_dataset1):
assert_that(count_upvotes(client1, session_s3_dataset1.datasetUri, S3_DATASET_TARGET_TYPE)).is_equal_to(1)

0 comments on commit e10b8ea

Please sign in to comment.