Skip to content

Commit

Permalink
Clean up adapter config, make order of params consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
the-other-james committed Sep 18, 2023
1 parent b21040e commit 3390d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions onair/config/adapter_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[DEFAULT]
TelemetryDataFilePath = data/raw_telemetry_data/
MetaFiles = adapter_TLM_CONFIG.json
TelemetryFile = adapter_TLM.txt
TelemetryMetadataFilePath = data/telemetry_configs/
TelemetryFiles = adapter_TLM.txt
MetaFile = adapter_TLM_CONFIG.json
ParserFileName = forty_two_parser
ParserName = FortyTwo
SimName = Adapter
Expand Down
8 changes: 4 additions & 4 deletions test/onair/src/run_scripts/test_execution_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def test_ExecutionEngine_parse_configs_raises_KeyError_with_config_file_info_whe
arg_config_filepath = MagicMock()

fake_default = {'TelemetryDataFilePath':MagicMock(),
'TelemetryFile':MagicMock(),
'TelemetryMetadataFilePath':MagicMock(),
'MetaFiles':MagicMock(),
'TelemetryFiles':MagicMock(),
'MetaFile':MagicMock(),
'BenchmarkFilePath':MagicMock(),
'BenchmarkFiles':MagicMock(),
'BenchmarkIndices':MagicMock(),
Expand Down Expand Up @@ -504,8 +504,8 @@ def __init__(self, data_file, meta_file, subsystems_breakdown):
fake_processdSimData = MagicMock()

cut = ExecutionEngine.__new__(ExecutionEngine)
cut.telemetryFiles = MagicMock()
cut.metaFiles = MagicMock()
cut.telemetryFile = MagicMock()
cut.metaFile = MagicMock()

mocker.patch(execution_engine.__name__ + '.importlib.import_module', return_value=fake_parser)
mocker.patch(execution_engine.__name__ + '.getattr', return_value=fake_parser_class)
Expand Down

0 comments on commit 3390d46

Please sign in to comment.