Files
canina/scripts/corporate_pilot_test.py
2026-10-28 13:08:29 +00:00

19 lines
716 B
Python

#!/usr/bin/env python3
"""Regression checks for repeatable disposable integration pilots."""
import unittest
import corporate_pilot as pilot
class PilotTests(unittest.TestCase):
def test_each_run_has_distinct_authenticated_subject_namespace(self):
first = pilot.pilot_environment({})
second = pilot.pilot_environment({})
self.assertNotEqual(first['CORPORATE_PILOT_RUN_ID'], second['CORPORATE_PILOT_RUN_ID'])
self.assertNotEqual(first['CORPORATE_API_KEY'], first['CORPORATE_QA_API_KEY'])
self.assertEqual(first['CORPORATE_TEST_DATABASE_URL'],
'postgresql://hermes@127.0.0.1:55441/corporate_test')
if __name__ == '__main__':
unittest.main()