Browse Source

Fixed failing tests on Windows (#216)

* Fixed failing tests on Windows

Due to an issue with WindowsPath

* Update test_creation.py

* Update test_creation.py
main
Omri Mendels 5 years ago committed by GitHub
parent
commit
5f54d39517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tests/test_creation.py

6
tests/test_creation.py

@ -34,7 +34,7 @@ class TestCookieSetup(object):
def test_author(self): def test_author(self):
setup_ = self.path / 'setup.py' setup_ = self.path / 'setup.py'
args = ['python', setup_, '--author'] args = ['python', str(setup_), '--author']
p = check_output(args).decode('ascii').strip() p = check_output(args).decode('ascii').strip()
if pytest.param.get('author_name'): if pytest.param.get('author_name'):
assert p == 'DrivenData' assert p == 'DrivenData'
@ -51,7 +51,7 @@ class TestCookieSetup(object):
def test_setup(self): def test_setup(self):
setup_ = self.path / 'setup.py' setup_ = self.path / 'setup.py'
args = ['python', setup_, '--version'] args = ['python', str(setup_), '--version']
p = check_output(args).decode('ascii').strip() p = check_output(args).decode('ascii').strip()
assert p == '0.1.0' assert p == '0.1.0'
@ -62,7 +62,7 @@ class TestCookieSetup(object):
def test_license_type(self): def test_license_type(self):
setup_ = self.path / 'setup.py' setup_ = self.path / 'setup.py'
args = ['python', setup_, '--license'] args = ['python', str(setup_), '--license']
p = check_output(args).decode('ascii').strip() p = check_output(args).decode('ascii').strip()
if pytest.param.get('open_source_license'): if pytest.param.get('open_source_license'):
assert p == 'BSD-3' assert p == 'BSD-3'

Loading…
Cancel
Save