Skip to content

Commit 282fde9

Browse files
committed
refactor: Mov test_workspacebuilder.py -> workspace/test_builder.py
1 parent 6dfeb38 commit 282fde9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/developing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ $ env PYTEST_ADDOPTS="-verbose" make start
159159
Pick a file:
160160

161161
```console
162-
$ env PYTEST_ADDOPTS="tests/test_workspacebuilder.py" poetry run make start
162+
$ env PYTEST_ADDOPTS="tests/workspace/test_builder.py" poetry run make start
163163
```
164164

165-
Drop into `test_automatic_rename_option()` in `tests/test_workspacebuilder.py`:
165+
Drop into `test_automatic_rename_option()` in `tests/workspace/test_builder.py`:
166166

167167
```console
168-
$ env PYTEST_ADDOPTS="-s -x -vv tests/test_workspacebuilder.py" poetry run make start
168+
$ env PYTEST_ADDOPTS="-s -x -vv tests/workspace/test_builder.py" poetry run make start
169169
```
170170

171-
Drop into `test_automatic_rename_option()` in `tests/test_workspacebuilder.py` and stop on first error:
171+
Drop into `test_automatic_rename_option()` in `tests/workspace/test_builder.py` and stop on first error:
172172

173173
```console
174-
$ env PYTEST_ADDOPTS="-s -x -vv tests/test_workspacebuilder.py::test_automatic_rename_option" poetry run make start
174+
$ env PYTEST_ADDOPTS="-s -x -vv tests/workspace/test_builder.py::test_automatic_rename_option" poetry run make start
175175
```
176176

177177
Drop into `pdb` on first error:
@@ -237,7 +237,7 @@ Create two terminals:
237237
version of tmuxp above. Then:
238238

239239
```console
240-
$ py.test tests/test_workspacebuilder.py
240+
$ py.test tests/workspace/test_builder.py
241241
```
242242

243243
Terminal 1 should have flickered and built the session before your eyes.

tests/workspace/__init__.py

Whitespace-only changes.

tests/test_workspacebuilder.py renamed to tests/workspace/test_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from tmuxp.workspace import config
1818
from tmuxp.workspace.builder import WorkspaceBuilder
1919

20-
from .constants import EXAMPLE_PATH, FIXTURE_PATH
21-
from .fixtures import utils as test_utils
20+
from ..constants import EXAMPLE_PATH, FIXTURE_PATH
21+
from ..fixtures import utils as test_utils
2222

2323
if t.TYPE_CHECKING:
2424
from libtmux.server import Server

0 commit comments

Comments
 (0)