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
This commit is contained in:
Omri Mendels 2020-05-26 20:16:03 +03:00 committed by GitHub
parent 78e001f742
commit 5f54d39517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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'