Skip to content

Commit

Permalink
[#523] Remove generated config after test
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Jun 28, 2022
1 parent 6c68c51 commit 094f6d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/v1/v1_profile/tests/test_config_js.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
class ConfigJS(TestCase):
def test_config_generation(self):
administration_seeder.seed_administration_prod()
os.remove(config_path)
if Path(config_path).exists():
os.remove(config_path)
self.assertFalse(Path(config_path).exists())
self.client.get("/api/v1/config.js", follow=True)
self.assertTrue(Path(config_path).exists())
os.remove(config_path)

0 comments on commit 094f6d2

Please sign in to comment.