Пример #1
0
def test_creates_pipe_from_object_json(tmpdir: str):
    assert tuple(pype.json(OBJECT_JSON_PATH)) == (('a', 1.), ('fun', 2.),
                                                  ('day', 3.))
Пример #2
0
def test_creates_pipe_from_list_json(tmpdir: str):
    assert tuple(pype.json(LIST_JSON_PATH)) == (1, 2, 3, 5, 8, 13)
Пример #3
0
def test_creates_pipe_from_null_json(tmpdir: str):
    assert tuple(pype.json(NULL_JSON_PATH)) == (None, )
Пример #4
0
def test_creates_pipe_from_boolean_json(tmpdir: str):
    assert tuple(pype.json(BOOLEAN_JSON_PATH)) == (True, )
Пример #5
0
def test_creates_pipe_from_string_json(tmpdir: str):
    assert tuple(pype.json(STRING_JSON_PATH)) == ('forty-two', )
Пример #6
0
def test_creates_pipe_from_number_json(tmpdir: str):
    assert tuple(pype.json(NUMBER_JSON_PATH)) == (42, )