Esempio n. 1
0
def test_custom_dagster_type():
    with safe_tempfile_path() as tempfile_path:
        assert (
            read_value(
                resolve_dagster_type(EvenType),
                write_value(resolve_dagster_type(EvenType), 4, tempfile_path),
            )
            == 4
        )
Esempio n. 2
0
def test_scalar():
    with safe_tempfile_path() as tempfile_path:
        assert (
            read_value(
                resolve_dagster_type(String),
                write_value(resolve_dagster_type(String), "foo", tempfile_path),
            )
            == "foo"
        )
Esempio n. 3
0
def test_scalar_any():
    with safe_tempfile_path() as tempfile_path:
        assert (
            read_value(
                resolve_dagster_type(Any),
                write_value(resolve_dagster_type(Any), 'foo', tempfile_path),
            )
            == 'foo'
        )