Skip to content

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

Merged
nemesifier merged 1 commit into
masterfrom
fixed-tests
Jul 4, 2022
Merged

[fix] Fixed tests failing due to openwisp-notification 1.0.2#670
nemesifier merged 1 commit into
masterfrom
fixed-tests

Conversation

@pandafy

@pandafy pandafy commented Jul 1, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown

Coverage Status

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

@nemesifier nemesifier left a comment

Copy link
Copy Markdown
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants