-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tony Crisci
committed
Mar 22, 2020
1 parent
64553f2
commit f11e729
Showing
2 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from .ipctest import IpcTest | ||
|
||
import pytest | ||
|
||
|
||
class TestScratchpad(IpcTest): | ||
@pytest.mark.asyncio | ||
async def test_scratchpad(self, i3): | ||
scratchpad = (await i3.get_tree()).scratchpad() | ||
assert scratchpad is not None | ||
assert scratchpad.name == '__i3_scratch' | ||
assert scratchpad.type == 'workspace' | ||
assert not scratchpad.floating_nodes | ||
win = self.open_window() | ||
await i3.command('move scratchpad') | ||
scratchpad = (await i3.get_tree()).scratchpad() | ||
assert scratchpad is not None | ||
assert scratchpad.floating_nodes |