Skip to content

Commit

Permalink
couple more test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Sep 21, 2023
1 parent f41150f commit 0512949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dagster import asset, build_op_context
from dagster import asset, build_asset_context

# start_simple_asset

Expand Down Expand Up @@ -55,7 +55,7 @@ def uses_context(context):


def test_uses_context():
context = build_op_context()
context = build_asset_context()
result = uses_context(context)
assert result == "bar"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
IOManager,
IOManagerDefinition,
ResourceDefinition,
build_op_context,
build_asset_context,
execute_job,
io_manager,
mem_io_manager,
Expand Down Expand Up @@ -402,7 +402,7 @@ def test_config():
resource_config_by_key={"foo": {"config": "blah"}, "bar": {"config": "baz"}},
)[0]

transformed_asset(build_op_context())
transformed_asset(build_asset_context())


def test_config_not_satisfied():
Expand Down Expand Up @@ -435,7 +435,7 @@ def test_bad_key_provided():
},
)[0]

transformed_asset(build_op_context())
transformed_asset(build_asset_context())


def test_bad_config_provided():
Expand Down

0 comments on commit 0512949

Please sign in to comment.