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