Fix #648: Improved test suite speed by reducing / disabling expensive operations

This commit is contained in:
Eliot Berriot 2019-01-04 11:47:23 +01:00
parent 17cb09fdc6
commit 7657db4212
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 32 additions and 6 deletions

View file

@ -410,3 +410,9 @@ def no_api_auth(preferences):
def migrator(transactional_db):
yield MigrationExecutor(connection)
call_command("migrate", interactive=False)
@pytest.fixture(autouse=True)
def rsa_small_key(settings):
# smaller size for faster generation, since it's CPU hungry
settings.RSA_KEY_SIZE = 512