Skip to content

Commit

Permalink
Edit docstring in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorund1 committed Aug 23, 2024
1 parent 65d93c0 commit 4a6aca2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration/seeddb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ def test_log_netbox_change_should_not_crash(admin_account, netbox):

def test_empty_function_field_in_netbox_edit_form_should_delete_respective_netboxinfo_instance(netbox, db, client):
"""
NetboxInfo.value.empty_value is not explicitly declared, but defaults to "",
so empty function fields should be saved as "" in the respective NetboxInfo
instance.
NetboxInfo.value.empty_value is not explicitly declared, but
defaults to "", so empty function fields in the webform should
cause the function's corresponding NetboxInfo to be deleted
because NAV by default never creates a NetboxInfo for a function
that is an empty string.
"""
url = reverse('seeddb-netbox-edit', args=(netbox.id,))
def post(func):
Expand Down

0 comments on commit 4a6aca2

Please sign in to comment.