Skip to content

Commit

Permalink
windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Jan 17, 2024
1 parent 545434c commit f466e1a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/test_flake8_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ class NoProfileTestCase(CommandRunningTestCase):
def test_no_profile(self):
self.assertNotEqual(0, self.returncode)
self.assertIn(
"The specified config file does not exist: config/notfound.conf",
(
f"The specified config file does not exist: config{os.sep}"
"notfound.conf"
),
self.stdout,
)

Expand All @@ -50,7 +53,10 @@ class DefaultProfileTestCase(CommandRunningTestCase):
env = {"FLAKE8_PROFILE_DIR": "config"}

def test_default_profile_from_config(self):
self.assertIn("Loaded profile from config/default.conf", self.stderr)
self.assertIn(
f"Loaded profile from config{os.sep}default.conf",
self.stderr,
)

def test_default_profile_finds_violations(self):
self.assertNotEqual(0, self.returncode)
Expand All @@ -63,7 +69,10 @@ class ProfileFromCliTestCase(CommandRunningTestCase):
env = {"FLAKE8_PROFILE_DIR": "config"}

def test_profile_from_cli(self):
self.assertIn("Loaded profile from config/nodoc.conf", self.stderr)
self.assertIn(
f"Loaded profile from config{os.sep}nodoc.conf",
self.stderr,
)

def test_nodoc_profile_finds_no_violations(self):
self.assertEqual(0, self.returncode)
Expand Down

0 comments on commit f466e1a

Please sign in to comment.