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