17 lines
302 B
Python
17 lines
302 B
Python
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.fixture
|
||
|
def pages():
|
||
|
from flatfilecms.resources import Root
|
||
|
return Root('../tests/pages')
|
||
|
|
||
|
|
||
|
def test_loading(pages):
|
||
|
assert 'index' in pages
|
||
|
|
||
|
|
||
|
def test_db_contains_pages(pages):
|
||
|
assert pages['index'].title == 'Заглушка для тестов БД'
|
||
|
pass
|