File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 1010from metrics .api .settings .auth import ALLOW_MISSING_IS_PUBLIC_FIELD , AUTH_ENABLED
1111from validation .data_transfer_models .base import (
1212 IncomingBaseDataModel ,
13- NonPublicDataSentToPublicIngestionError ,
1413)
1514
1615
@@ -134,14 +133,6 @@ def validate_confidence_intervals(self) -> Self:
134133 )
135134 return self
136135
137- @model_validator (mode = "after" )
138- def invalidate_non_public_data_for_public_ingestion (self ) -> Self :
139- """Checks that if this is a public instance of the product then `is_public=False` data is invalidated."""
140- if not AUTH_ENABLED and not self .is_public :
141- raise NonPublicDataSentToPublicIngestionError
142-
143- return self
144-
145136
146137class HeadlineDTO (IncomingBaseDataModel ):
147138 data : list [InboundHeadlineSpecificFields ]
Original file line number Diff line number Diff line change 99from metrics .api .settings .auth import ALLOW_MISSING_IS_PUBLIC_FIELD , AUTH_ENABLED
1010from validation .data_transfer_models .base import (
1111 IncomingBaseDataModel ,
12- NonPublicDataSentToPublicIngestionError ,
1312)
1413
1514
@@ -43,14 +42,6 @@ def cast_embargo_to_uk_timezone(
4342 """
4443 return validation .cast_date_to_uk_timezone (date_value = embargo )
4544
46- @model_validator (mode = "after" )
47- def invalidate_non_public_data_for_public_ingestion (self ) -> Self :
48- """Checks that if this is a public instance of the product then `is_public=False` data is invalidated."""
49- if not AUTH_ENABLED and not self .is_public :
50- raise NonPublicDataSentToPublicIngestionError
51-
52- return self
53-
5445
5546class TimeSeriesDTO (IncomingBaseDataModel ):
5647 metric_frequency : str
Original file line number Diff line number Diff line change 2020
2121
2222def _gather_test_data_source_file_paths () -> list [Path ]:
23- path_to_test_source_data = f"{ ROOT_LEVEL_BASE_DIR } /source_data "
23+ path_to_test_source_data = f"{ ROOT_LEVEL_BASE_DIR } /kathryn_source_data "
2424 source_file_names = next (os .walk (path_to_test_source_data ))[2 ]
2525 return [
2626 Path (f"{ path_to_test_source_data } /{ source_file_name } " )
You can’t perform that action at this time.
0 commit comments