Skip to content

Commit

Permalink
run faster tests and more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Solomon committed Oct 22, 2015
1 parent 38c5d1d commit 01328c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: python
sudo: false
install:
- pip install tox
script:
Expand Down
15 changes: 8 additions & 7 deletions tests/render-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ def test_env(self):
self._testme(['--format=env', 'resources/nginx-env.j2'], env=env)

def test_glob(self):
self.assertEqual('[\'resources/nginx-env\', \'resources/nginx-env2\']',
render_command(os.getcwd(),
{},
None,
['-g',
'resources/nginx-env*.j2',
'resources/data.env']))
self.assertTrue(render_command(os.getcwd(),
{},
None,
['-g',
'resources/nginx-env*.j2',
'resources/data.env']) in
['[\'resources/nginx-env\', \'resources/nginx-env2\']',
'[\'resources/nginx-env2\', \'resources/nginx-env\']'])
with open('resources/nginx-env', 'r') as f:
self.assertEqual(self.expected_output,
f.read())
Expand Down

0 comments on commit 01328c0

Please sign in to comment.