Skip to content

Refactor test cases to use setUpTestData#304

Merged
knikolla merged 2 commits intonerc-project:mainfrom
QuanMPhm:303/tests
Mar 23, 2026
Merged

Refactor test cases to use setUpTestData#304
knikolla merged 2 commits intonerc-project:mainfrom
QuanMPhm:303/tests

Conversation

@QuanMPhm
Copy link
Copy Markdown
Contributor

Closes #303. I have successfully invented a de-aging product. I feel younger already just by running the CI!

Using `setUpTestData` [1] removes the need to recreate the test database
for each test method, significantly improving the runtime of the test suite

[1] https://docs.djangoproject.com/en/6.0/topics/testing/tools/#django.test.TestCase.setUpTestData
@QuanMPhm QuanMPhm changed the title 303/tests Refactor test cases to use setUpTestData Mar 21, 2026
@knikolla knikolla merged commit 0d3690b into nerc-project:main Mar 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor test cases to execute more quickly

3 participants