From 5f54d3951710b312ca040a206bd989fa1b27e2c0 Mon Sep 17 00:00:00 2001 From: Omri Mendels Date: Tue, 26 May 2020 20:16:03 +0300 Subject: [PATCH] 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 --- tests/test_creation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_creation.py b/tests/test_creation.py index 0840153..b32d23d 100644 --- a/tests/test_creation.py +++ b/tests/test_creation.py @@ -34,7 +34,7 @@ class TestCookieSetup(object): 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' @@ -51,7 +51,7 @@ class TestCookieSetup(object): 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' @@ -62,7 +62,7 @@ class TestCookieSetup(object): 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'