-
Notifications
You must be signed in to change notification settings - Fork 266
test: Token gated communities - TC 7128 #7144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
- test_admin_token_permissions_with_valid_tokens
- cleanup and add additional logging
- test_owner_edits_visible_before_and_after_minting_owner_token
- test_owner_edits_visible_before_and_after_minting_owner_token
Jenkins BuildsClick to see older builds (147)
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## develop #7144 +/- ##
============================================
- Coverage 60.04% 34.97% -25.07%
============================================
Files 813 798 -15
Lines 113391 111318 -2073
============================================
- Hits 68080 38938 -29142
- Misses 38489 67570 +29081
+ Partials 6822 4810 -2012
Flags with carried forward coverage won't be shown. Click here to find out more. |
- test_owner_edits_visible_before_and_after_minting_owner_token
- test_owner_edits_visible_before_and_after_minting_owner_token
…7128' into test/token-gated-communities-tc-7128 # Conflicts: # tests-functional/tests/test_wakuext_community_token_permissions.py
✔️ status-go/prs/tests-nwaku/PR-7144#3 🔹 ~28 min 🔹 b22ec06 🔹 📦 tests package |
fbarbu15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, left just some small comments
| def test_owner_edits_visible_before_and_after_minting_owner_token(self): | ||
| """Test that owner edits are visible before and after minting the owner token""" | ||
|
|
||
| def edit_community(community_id): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to have this function nested inside the test? If we move it outside, we keep the test more compact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function moved at 338ba6c
| == RequestToJoinState.RequestToJoinStatePending.value, | ||
| ) | ||
|
|
||
| time.sleep(5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the sleep since we wait for signal above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you. I would rather pull state (old school approach) with timeout or wait for push - quality signal. It looks backend coherence with signals has still some room for improvement. We are discussing it here #7161 (comment)
| new_name2, new_description2 = edit_community(community_id) | ||
| logger.info(f"New name2: {new_name2}, new description2: {new_description2}") | ||
|
|
||
| time.sleep(5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we avoid the sleep by looking for a signal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was there more for demo reasons. Fixed at 4705f43
Summary
Test case 7128 of functional tests to cover token-gated communities.
Tests Included
Issues discovered
Closes #7128