mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
15 lines
338 B
Python
15 lines
338 B
Python
import pytest
|
|
|
|
from textual.layouts.dock import DockLayout
|
|
from textual.layouts.factory import get_layout, MissingLayout
|
|
|
|
|
|
def test_get_layout_valid_layout():
|
|
layout = get_layout("dock")
|
|
assert type(layout) is DockLayout
|
|
|
|
|
|
def test_get_layout_invalid_layout():
|
|
with pytest.raises(MissingLayout):
|
|
get_layout("invalid")
|