Skip to content

Add note about testing to transaction docs#80

Closed
LilyFirefly wants to merge 1 commit intomainfrom
document-transaction-test-behaviour
Closed

Add note about testing to transaction docs#80
LilyFirefly wants to merge 1 commit intomainfrom
document-transaction-test-behaviour

Conversation

@LilyFirefly
Copy link
Copy Markdown
Collaborator

Fixes #68.

@LilyFirefly LilyFirefly self-assigned this Oct 7, 2025
@LilyFirefly LilyFirefly requested a review from a team as a code owner October 7, 2025 10:26
@LilyFirefly LilyFirefly added the documentation Improvements or additions to documentation label Oct 7, 2025
Comment on lines +39 to +41
### Testing

By default, [Django's `TestCase`][TestCase] runs all tests in a transaction. Django Subatomic hooks into Django's test infrastructure to make this test transaction completely transparent. This allows realistic testing of code using [`transaction`][django_subatomic.db.transaction] without needing [Django's `TransactionTestCase`][TransactionTestCase].
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is important to note, but I'm not sure that this is the place to document it... but I'm not sure if we have an appropriate doc yet 🤔

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thinking about it, I think we need a whole doc just on testing. I hope to start on that soon.

@LilyFirefly LilyFirefly closed this Mar 6, 2026
@LilyFirefly LilyFirefly deleted the document-transaction-test-behaviour branch March 6, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation for ignoring testcase transactions

2 participants