Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Dec 6, 2018
1 parent 7c9fe62 commit ec0cd83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/test_lib/test_os.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import os
import tempfile
from xonsh.lib.os import indir, rmtree

from tools import skip_if_on_azure_pipelines
from tools import skip_if_on_azure_pipelines, ON_AZURE_PIPELINES

def test_on_azure():
assert ON_AZURE_PIPELINES, os.environ["TF_BUILD"]

@skip_if_on_azure_pipelines
def test_indir():
Expand Down
4 changes: 2 additions & 2 deletions tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
conda in pytest.__file__.lower() for conda in ["conda", "anaconda", "miniconda"]
]
ON_TRAVIS = "TRAVIS" in os.environ and "CI" in os.environ
ON_AZURE_PIPELINES = "TF_BUILD" in os.environ and os.environ["TF_BUILD"] == "True"
ON_AZURE_PIPELINES = os.environ.get("TF_BUILD", "") == "True"
print("ON_AZURE_PIPELINES", repr(ON_AZURE_PIPELINES))
print("os.environ['TF_BUILD']", repr(os.environ["TF_BUILD"]))
print("os.environ['TF_BUILD']", repr(os.environ.get("TF_BUILD", ""))
TEST_DIR = os.path.dirname(__file__)

# pytest skip decorators
Expand Down

0 comments on commit ec0cd83

Please sign in to comment.