Skip to content

Commit

Permalink
add path var to class init
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkdev committed Jun 30, 2024
1 parent 5f25bb5 commit 696f3ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test_ansible_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def setUpClass(cls):
cls.app = init_app()
cls.client = cls.app.test_client()
cls.app.testing = True

cls.job_storage = cls.app.config['job_storage']

def test_health_check(self):
response = self.client.get('/health')
Expand Down Expand Up @@ -88,9 +90,10 @@ def test_job_creation_and_retrieval(self):
for key in expected_keys:
self.assertIn(key, file_data, f"Expected key '{key}' not found in job file")

# Verify that the job data matches the initial payload
self.assertEqual(file_data['playbook'], payload['playbook'])
self.assertEqual(file_data['inventory'], payload['inventory'])
self.assertEqual(file_data['vars'], payload['vars'])

if __name__ == '__main__':
unittest.main()
unittest.main()

0 comments on commit 696f3ff

Please sign in to comment.