Skip to content

Commit

Permalink
🐛 Possible bug fix for circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph vantassel committed Jul 14, 2021
1 parent 5983da7 commit 8505ff4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,26 @@ def test_parse_config(self):
def test_cli(self):
# Simple - use config.
fname = "UT.STN11.A2_C150"
subprocess.run(f"hvsrpy --config {self.full_path}data/cli/settings_cli_simple.cfg --no_time {self.full_path}data/a2/{fname}.miniseed")
subprocess.run(["hvsrpy", "--no_time", "--config",
f"{self.full_path}data/cli/settings_cli_simple.cfg",
f"{self.full_path}data/a2/{fname}.miniseed"],
check=True)
self.assertTrue(os.path.exists(f"{fname}_hvsrpy.hv"))
self.assertTrue(os.path.exists(f"{fname}.png"))
os.remove(f"{fname}_hvsrpy.hv")
os.remove(f"{fname}.png")

# Azimuthal - use config.
fname = "UT.STN11.A2_C150"
subprocess.run(f"hvsrpy --config {self.full_path}data/cli/settings_cli_azimuthal.cfg --no_time {self.full_path}data/a2/{fname}.miniseed")
subprocess.run(["hvsrpy", "--no_time", "--config",
f"{self.full_path}data/cli/settings_cli_azimuthal.cfg",
f"{self.full_path}data/a2/{fname}.miniseed"],
check=True)
self.assertTrue(os.path.exists(f"{fname}_hvsrpy_az.hv"))
self.assertTrue(os.path.exists(f"{fname}_az.png"))
os.remove(f"{fname}_hvsrpy_az.hv")
os.remove(f"{fname}_az.png")





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

0 comments on commit 8505ff4

Please sign in to comment.