Skip to content

Commit

Permalink
CI/Tests: Fix testing example programs
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 10, 2023
1 parent 71fa38c commit 2d4b0dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os
import sys


def test_example_stations(capfd):
os.system("python examples/stations.py")
os.system(f"{sys.executable} examples/stations.py")

out, err = capfd.readouterr()
assert "Int64Index: 323 entries" in out
Expand All @@ -12,7 +13,7 @@ def test_example_stations(capfd):


def test_example_observations(capfd):
os.system("python examples/observations.py")
os.system(f"{sys.executable} examples/observations.py")

out, err = capfd.readouterr()
assert "Int64Index: 6 entries" in out
Expand Down

0 comments on commit 2d4b0dc

Please sign in to comment.