Chiusura fase di ristrutturazione e modularizzazione del workflow per favorire sviluppo modulare
This commit is contained in:
@@ -154,7 +154,7 @@ def test_datetimes_must_be_aware_and_are_normalized_to_utc():
|
||||
source_id="source:a",
|
||||
uri="https://host/a",
|
||||
fingerprint="etag:abc",
|
||||
modified_at=datetime(2026, 7, 12),
|
||||
modified_at=datetime(2026, 7, 12), # noqa: DTZ001 - verifies rejection
|
||||
)
|
||||
|
||||
source = SourceObject(
|
||||
@@ -236,4 +236,8 @@ def test_model_copy_revalidates_source_and_acquired_records():
|
||||
with pytest.raises(ValidationError, match="namespaced"):
|
||||
source.model_copy(update={"source_id": "invalid"})
|
||||
with pytest.raises(ValidationError, match="timezone-aware"):
|
||||
acquired.model_copy(update={"acquired_at": datetime(2026, 7, 12)})
|
||||
acquired.model_copy(
|
||||
update={
|
||||
"acquired_at": datetime(2026, 7, 12) # noqa: DTZ001 - verifies rejection
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user