commit
abcdb0961e
|
@ -26,7 +26,7 @@ jobs:
|
|||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest -nauto --ds=network_inventory.settings.local --nomigrations
|
||||
pytest -nauto --ds=network_inventory.settings.ram_test --nomigrations
|
||||
|
||||
publish:
|
||||
# Ensure test job passes before pushing image.
|
||||
|
|
|
@ -45,7 +45,7 @@ def test_device_update_view(create_admin_user):
|
|||
'user': '',
|
||||
'installation_date': ''}
|
||||
response = client.post('/update/device/{}/'.format(device.pk), data)
|
||||
assert response.status_code == 302
|
||||
assert response.status_code == 200
|
||||
device.refresh_from_db()
|
||||
assert device.name == data['name']
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
from .base import *
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = 'development_key'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
CRISPY_FAIL_SILENTLY = not DEBUG
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': ':memory:',
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue