Skip to content

Commit

Permalink
use non deprecated methods in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Jan 29, 2024
1 parent ee98bb2 commit 8e4e057
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ def multi_asset_with_internal_deps(thing):
def test_materialize_tags():
@asset
def the_asset(context):
assert context.get_tag("key1") == "value1"
assert context.run.tags.get("key1") == "value1"

with instance_for_test() as instance:
result = materialize([the_asset], instance=instance, tags={"key1": "value1"})
assert result.success
assert result.dagster_run.tags == {"key1": "value1"}
assert result.run.tags == {"key1": "value1"}


def test_materialize_partition_key():
Expand Down

0 comments on commit 8e4e057

Please sign in to comment.