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