Skip to content

Commit

Permalink
Merge pull request #107 from pnuu/fix-tle-database-write-test
Browse files Browse the repository at this point in the history
Fix windows test on writing the TLE database
  • Loading branch information
pnuu committed Nov 9, 2022
2 parents f7038d4 + 931370f commit 86ddde1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyorbital/tests/test_tlefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from unittest import mock
import os
from contextlib import suppress
import time

line0 = "ISS (ZARYA)"
line1 = "1 25544U 98067A 08264.51782528 -.00002182 00000-0 -11606-4 0 2927"
Expand Down Expand Up @@ -516,6 +517,8 @@ def test_write_tle_txt(self):
# Do not write the satellite name
self.db.writer_config["write_always"] = True
self.db.writer_config["write_name"] = False
# Wait a bit to ensure different filename
time.sleep(2)
self.db.write_tle_txt()
files = sorted(glob.glob(os.path.join(tle_dir, 'tle_*txt')))
self.assertEqual(len(files), 2)
Expand Down

0 comments on commit 86ddde1

Please sign in to comment.