Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Verify queued job ID using the original upload
Cinna Davisd3be5bee2152
diff --git a/tests/test_real_cli_watch.py b/tests/test_real_cli_watch.pyindex ed0d858..53d8d48 100644--- a/tests/test_real_cli_watch.py+++ b/tests/test_real_cli_watch.py@@ -35,3 +35,21 @@ def test_watch_real_job_and_interrupt_only_the_watcher():assert 'local checkpoint pieces' in stderr and 'pieces/min since last check' in stderrassert 'Stopped watching; the job continues.' in stderrassert json.loads((job / 'result.json').read_text())['status'] == 'running'+++def test_real_upload_prints_job_id_before_final_json(tmp_path):+ source = os.environ.get('DOPPLERGEIST_REAL_JOB_ROOT')+ if not source:+ pytest.skip('set DOPPLERGEIST_REAL_JOB_ROOT to the original upload')+ audio = Path(source) / 'input.mp3'+ config = tmp_path / 'operator.json'+ config.write_text(json.dumps({'search_workers': 0})) # Fail before audio discovery.+ jobs = tmp_path / 'jobs'+ result = subprocess.run([sys.executable, '-m', 'dopplergeist.cli', 'analyze', str(audio),+ '--jobs', str(jobs), '--config', str(config)],+ check=True, capture_output=True, text=True, timeout=60)+ value = json.loads(result.stdout)+ assert value['status'] == 'failed' and value['reason_code'] == 'invalid_configuration'+ assert f"Job {value['job_id']} started." in result.stderr+ assert f"dopplergeist job {value['job_id']}" in result.stderr+ assert (jobs / value['job_id'] / 'result.json').is_file()