Add a test!

Just one
This commit is contained in:
2022-01-08 17:17:25 +00:00
parent 1490d906ca
commit 1b32dc2db0
8 changed files with 98 additions and 73 deletions

View File

@@ -1 +0,0 @@
default_app_config = 'assets.apps.AssetsAppConfig'

View File

@@ -105,7 +105,6 @@ def test_asset_edit(admin_client, test_asset):
def test_cable_edit(admin_client, test_cable):
url = reverse('asset_update', kwargs={'pk': test_cable.asset_id})
# TODO Why do I have to send is_cable=True here?
response = admin_client.post(url, {'is_cable': True, 'length': -3, 'csa': -3})
# TODO Can't figure out how to select the 'none' option...