Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHaystack committed Oct 31, 2019
1 parent 61197db commit dbf3137
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from i3_resurrect import util


def test_build_tree(monkeypatch):
def test_build_layout(monkeypatch):
# Monkeypatch config.
monkeypatch.setattr(
config,
Expand Down Expand Up @@ -313,7 +313,7 @@ def test_build_tree(monkeypatch):
"instance": "^ario$"
}
],
"nodes": []
"sticky": False
},
{
"border": "normal",
Expand All @@ -331,6 +331,7 @@ def test_build_tree(monkeypatch):
"orientation": "vertical",
"percent": 0.5,
"scratchpad_state": "none",
"sticky": False,
"type": "con",
"workspace_layout": "default",
"nodes": [
Expand All @@ -350,6 +351,7 @@ def test_build_tree(monkeypatch):
"orientation": "none",
"percent": 0.5,
"scratchpad_state": "none",
"sticky": False,
"type": "con",
"workspace_layout": "default",
"swallows": [
Expand All @@ -358,8 +360,7 @@ def test_build_tree(monkeypatch):
"instance": "^dolphin\\-emu$",
"title": "^Faster\\ Melee\\ \\-\\ Slippi\\ \\(r18\\)$"
}
],
"nodes": []
]
},
{
"border": "pixel",
Expand All @@ -377,6 +378,7 @@ def test_build_tree(monkeypatch):
"orientation": "none",
"percent": 0.5,
"scratchpad_state": "none",
"sticky": False,
"type": "con",
"workspace_layout": "default",
"swallows": [
Expand All @@ -385,13 +387,12 @@ def test_build_tree(monkeypatch):
"instance": "^dolphin\\-emu$",
"title": "^Dolphin\\ NetPlay\\ Setup$"
}
],
"nodes": []
]
}
]
}
]
tree = util.build_tree(workspace_container, ['class', 'instance', 'title'])
tree = util.build_layout(workspace_container, ['class', 'instance', 'title'])
assert tree == expected_tree


Expand Down

0 comments on commit dbf3137

Please sign in to comment.