File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 95
95
# Use the example file and run the full validation logic from our application
96
96
loader = ConfigLoader(config_path='config.toml.example')
97
97
config = loader.get_flat_config()
98
- _validate_config(config)
98
+
99
+ print("Patching config in-memory with dummy data for validation...")
100
+ config_to_validate = config.copy()
101
+ config_to_validate.update({
102
+ "BIGQUERY_LOCATION": "dummy-location",
103
+ "BIGQUERY_PROJECT_ID": "dummy-project",
104
+ "BIGQUERY_DATASET_ID": "dummy-dataset",
105
+ "BIGQUERY_TABLE_ID": "dummy-table",
106
+ "CONTRACT_ADDRESS": "0x" + "0" * 40,
107
+ "CONTRACT_FUNCTION": "dummyFunction",
108
+ "BLOCKCHAIN_CHAIN_ID": 1,
109
+ "RPC_PROVIDERS": ["http://dummy-rpc.com"],
110
+ })
111
+
112
+ _validate_config(config_to_validate)
99
113
100
- print('config.toml.example is valid and contains all required fields .')
114
+ print('config.toml.example is structurally valid .')
101
115
"
102
116
103
117
# =============================================================================
You can’t perform that action at this time.
0 commit comments