Skip to content
Snippets Groups Projects

Feature/nat 328 site names should be validated

Merged Hakan Calim requested to merge feature/NAT-328-Site-names-should-be-validated into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -82,7 +82,7 @@ def test_import_iptrunk_successful_with_mocked_process(mock_start_process, test_
@pytest.fixture
def site_data(faker):
return {
"site_name": faker.domain_word(),
"site_name": faker.site_name(),
"site_city": faker.city(),
"site_country": faker.country(),
"site_country_code": faker.country_code(),
@@ -132,7 +132,7 @@ def test_import_site_endpoint_with_existing_site(test_client, site_data):
assert response.status_code == 201
response = test_client.post(SITE_IMPORT_ENDPOINT, json=site_data)
assert response.status_code == 409
assert response.status_code == 422
assert SubscriptionTable.query.count() == 1
Loading