Skip to content

Commit

Permalink
Clean up coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Nov 13, 2024
1 parent 91ee2aa commit c7d6c8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions anvil_consortium_manager/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def clean_authorization_domains(self):
print(auth_domain.name)
if auth_domain.name == "invalid-name":
raise forms.ValidationError("Test error")
return authorization_domains
return authorization_domains # pragma: no cover

Check warning on line 708 in anvil_consortium_manager/tests/test_forms.py

View check run for this annotation

Codecov / codecov/patch

anvil_consortium_manager/tests/test_forms.py#L708

Added line #L708 was not covered by tests

class TestWorkspaceCloneForm(forms.WorkspaceCloneFormMixin, TestWorkspaceForm):
class Meta(TestWorkspaceForm.Meta):
Expand Down Expand Up @@ -740,8 +740,6 @@ def clean_authorization_domains(self):
if authorization_domains:
for auth_domain in authorization_domains:
print(auth_domain.name)

Check warning on line 742 in anvil_consortium_manager/tests/test_forms.py

View check run for this annotation

Codecov / codecov/patch

anvil_consortium_manager/tests/test_forms.py#L741-L742

Added lines #L741 - L742 were not covered by tests
if auth_domain.name == "invalid-name":
raise forms.ValidationError("Test error")
return authorization_domains

class TestWorkspaceCloneForm(forms.WorkspaceCloneFormMixin, TestWorkspaceForm):
Expand Down

0 comments on commit c7d6c8d

Please sign in to comment.