Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[fix] Fixed tests failing due to openwisp-notification 1.0.2 #670

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

pandafy
Copy link
Member

@pandafy pandafy commented Jul 1, 2022

Bug:
In openwisp-notification 1.0.2, the operation for creating notification
settings when an organization is created is wrapped in transaction.on_commit.
Tests which relied on this functionality and which inherited from
TestCase class were failing.

Fix:
Moved these tests to test class which inherits from TransactionTestCase.

Bug:
In openwisp-notification 1.0.2, the operation for creating notification
settings when an organization is created is wrapped in transaction.on_commit.
Tests which relied on this functionality and which inherited from
TestCase class were failing.

Fix:
Moved these tests to test class which inherits from TransactionTestCase.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.669% when pulling 427f1ba on fixed-tests into 126ab58 on master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nemesifier nemesifier merged commit 1f6506a into master Jul 4, 2022
@nemesifier nemesifier deleted the fixed-tests branch July 4, 2022 14:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants