-
Notifications
You must be signed in to change notification settings - Fork 3
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
Faster and bullet proof test runner #8
Conversation
ccc5d7b
to
96aeea2
Compare
@@ -4,17 +4,16 @@ | |||
from django.db import connections | |||
from django.test.runner import ParallelTestSuite, DiscoverRunner | |||
|
|||
from germanium.signals import set_up, tear_down | |||
|
|||
from .connection import TestTableConnection | |||
from .models import dynamodb_model_classes | |||
|
|||
|
|||
def init_pynamodb_test_prefix(prefix=None): | |||
for model_class in dynamodb_model_classes: | |||
model_class._connection = None |
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.
for other reviewers, this line is necessary for the model_class._get_connection()
pydjamodb/test_runner.py
Outdated
@@ -4,17 +4,16 @@ | |||
from django.db import connections | |||
from django.test.runner import ParallelTestSuite, DiscoverRunner | |||
|
|||
from germanium.signals import set_up, tear_down |
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.
You should add germanium to setup.py as it is now required for the library. (not just for the failing tests, although the test app will need a germanium version bump or removal of the dependency as this app will have it on its own)
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.
no it is not required
use test runner is not mandatory with using pydjamodb
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.
added try except too support test runner without germanium
96aeea2
to
6061c63
Compare
6061c63
to
b18f702
Compare
Pull Request Test Coverage Report for Build 1635013183Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
No description provided.