This repository has been archived on 2020-09-29. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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
|