Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek's Macbook Pro authored and Abhishek's Macbook Pro committed May 11, 2024
1 parent 2bb5719 commit 4518c4e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/src/commands/test_annotate_and_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,19 @@ class TestSymbol:
deactivate
"""

mocked_run_test_command.assert_called_once_with(
test_command
)
if sublime.platform == PyRockConstants.PLATFORM_WINDOWS:
mocked_run_test_command.assert_called_once_with(
[
'/Users/abhishek/venv/bin/activate',
'&&', 'cd', '/Users/abhishek/', '&&',
'pytest', 'tests/fixtures/test_fixture.py::MyTestCase',
'deactivate'
]
)
else:
mocked_run_test_command.assert_called_once_with(
test_command
)

def test_run_test_command(self):
sublime.set_timeout_async(self._open_test_fixture_file, 0)
Expand Down

0 comments on commit 4518c4e

Please sign in to comment.