Skip to content

Commit

Permalink
#328 corrected execution folder for README tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IanGrimstead authored and IanGrimstead committed Sep 24, 2019
1 parent 635d689 commit a3c4f7a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,19 @@
@pytest.mark.skipif('TRAVIS' not in os.environ, reason="Only execute with Travis due to speed")
class TestReadme(unittest.TestCase):
"""
Batch of tests to execute same commands as mentioned in the README.md, to ensure they work without crashing
Batch of tests to execute same commands as mentioned in the README.md, to ensure they work without crashing.
Note that the tests need to be run at the main user folder as this shows the files exist - not to be run in the
tests folder.
"""

@classmethod
def setUpClass(cls):
os.chdir('..')

@classmethod
def tearDownClass(cls):
os.chdir('tests')

def test_no_arguments_and_use_cache(self):
# clear cached result
import shutil
Expand Down

0 comments on commit a3c4f7a

Please sign in to comment.