4444
4545TEST_MAPPING_TIFF_HE = ".*\\ .tiff:staining_method=H&E"
4646SUBMITTED_BY = "user@example.com"
47+ _ISO_8601_FORMAT = "%Y-%m-%dT%H:%M:%S"
4748
4849
4950def _make_statistics ( # noqa: PLR0913
@@ -978,11 +979,6 @@ def test_retrieve_and_print_run_details_default_is_detailed(mock_console: Mock)
978979 assert "Artifact ID" in all_output
979980
980981
981- # Tests for validate_due_date, validate_deadline, validate_scheduling_constraints
982-
983- _ISO_8601_FORMAT = "%Y-%m-%dT%H:%M:%S"
984-
985-
986982@pytest .mark .unit
987983def test_validate_due_date_none () -> None :
988984 """Test that None is accepted (optional parameter)."""
@@ -1000,7 +996,7 @@ def test_validate_due_date_valid_formats() -> None:
1000996 future_time .isoformat (), # With timezone offset like +00:00
1001997 future_time .strftime (_ISO_8601_FORMAT ) + "Z" , # With Z suffix
1002998 future_time .strftime (f"{ _ISO_8601_FORMAT } .%f" ) + "Z" , # With microseconds and Z
1003- future_time .strftime (f"{ _ISO_8601_FORMAT } .%f%z" ) , # With microseconds and timezone
999+ future_time .strftime (f"{ _ISO_8601_FORMAT } .%f" ) + "+00:00" , # With microseconds and colon-separated offset
10041000 ]
10051001
10061002 for time_str in valid_formats :
@@ -1085,7 +1081,7 @@ def test_validate_deadline_valid_formats() -> None:
10851081 future_time .isoformat (),
10861082 future_time .strftime (_ISO_8601_FORMAT ) + "Z" ,
10871083 future_time .strftime (f"{ _ISO_8601_FORMAT } .%f" ) + "Z" ,
1088- future_time .strftime (f"{ _ISO_8601_FORMAT } .%f%z" ),
1084+ future_time .strftime (f"{ _ISO_8601_FORMAT } .%f" ) + "+00:00" , # With microseconds and colon-separated offset
10891085 ]
10901086
10911087 for time_str in valid_formats :
0 commit comments