Skip to content

Commit 61c8280

Browse files
changed the nesessary tests accordingly
1 parent 903deef commit 61c8280

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sde_collections/tests/test_exclude_patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_create_simple_exclude_pattern(self):
5656
pattern = DeltaExcludePattern.objects.create(
5757
collection=self.collection, match_pattern="https://example.com/exclude-me", reason="Test exclusion"
5858
)
59-
assert pattern.match_pattern_type == DeltaExcludePattern.MatchPatternTypeChoices.INDIVIDUAL_URL
59+
assert pattern.match_pattern_type == DeltaExcludePattern.MatchPatternTypeChoices.MULTI_URL_PATTERN
6060

6161
def test_exclude_single_curated_url(self):
6262
"""Test excluding a single curated URL creates appropriate delta."""

sde_collections/tests/test_field_modifier_patterns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def test_create_document_type_pattern_single(self):
4747
collection=self.collection,
4848
match_pattern="https://example.com/docs/guide.pdf",
4949
document_type=DocumentTypes.DOCUMENTATION,
50+
match_pattern_type=DeltaDocumentTypePattern.MatchPatternTypeChoices.INDIVIDUAL_URL,
5051
)
5152
assert pattern.match_pattern_type == DeltaDocumentTypePattern.MatchPatternTypeChoices.INDIVIDUAL_URL
5253
assert pattern.document_type == DocumentTypes.DOCUMENTATION

0 commit comments

Comments
 (0)