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 )
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" )
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' )