Skip to content

Commit

Permalink
Fixed failing tests on Windows (drivendataorg#216)
Browse files Browse the repository at this point in the history
* Fixed failing tests on Windows

Due to an issue with WindowsPath

* Update test_creation.py

* Update test_creation.py
  • Loading branch information
omri374 committed May 26, 2020
1 parent 78e001f commit 5f54d39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_project_name(self):

def test_author(self):
setup_ = self.path / 'setup.py'
args = ['python', setup_, '--author']
args = ['python', str(setup_), '--author']
p = check_output(args).decode('ascii').strip()
if pytest.param.get('author_name'):
assert p == 'DrivenData'
Expand All @@ -51,7 +51,7 @@ def test_readme(self):

def test_setup(self):
setup_ = self.path / 'setup.py'
args = ['python', setup_, '--version']
args = ['python', str(setup_), '--version']
p = check_output(args).decode('ascii').strip()
assert p == '0.1.0'

Expand All @@ -62,7 +62,7 @@ def test_license(self):

def test_license_type(self):
setup_ = self.path / 'setup.py'
args = ['python', setup_, '--license']
args = ['python', str(setup_), '--license']
p = check_output(args).decode('ascii').strip()
if pytest.param.get('open_source_license'):
assert p == 'BSD-3'
Expand Down

0 comments on commit 5f54d39

Please sign in to comment.