Skip to content

Commit

Permalink
update docs from test snippet changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Nov 17, 2023
1 parent 5929897 commit b6e2521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/concepts/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def test_asset_with_inputs():
If your asset has a config schema, you can pass a config value to the invocation. The following asset relies on attached config:

```python file=/concepts/ops_jobs_graphs/unit_tests.py startafter=start_test_config_asset endbefore=end_test_config_asset
from dagster import asset, Config, build_op_context
from dagster import asset, Config


class MyAssetConfig(Config):
Expand All @@ -357,7 +357,7 @@ If your asset requires resources, you can specify them as arguments when invokin
Consider the following asset, which requires a resource `bar`.

```python file=/concepts/ops_jobs_graphs/unit_tests.py startafter=start_test_resource_asset endbefore=end_test_resource_asset
from dagster import asset, ConfigurableResource, build_op_context, with_resources
from dagster import asset, ConfigurableResource


class BarResource(ConfigurableResource):
Expand Down

0 comments on commit b6e2521

Please sign in to comment.