test_filecontents

tests/test_filecontents.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest

from lektor_ng.filecontents import FileContents


def test_FileContents_is_deprecated():
    with pytest.deprecated_call(match=r"FileContents") as warnings:
        FileContents(__file__)
    assert warnings[0].filename == __file__


def test_FileContents_is_a_type():
    assert isinstance(FileContents, type)