-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
import pytest | ||
from dagster import AssetKey, AssetMaterialization, TableColumn, TableSchema | ||
from dagster._check import CheckError | ||
from dagster._core.definitions.tags import NamespacedTagSet | ||
from dagster._core.test_utils import ignore_warning, raise_exception_on_warnings | ||
|
||
|
||
def test_invalid_tag_set() -> None: | ||
class MyJunkTagSet(NamespacedTagSet): | ||
junk: int | ||
|
||
@classmethod | ||
def namespace(cls) -> str: | ||
return "dagster" | ||
|
||
with pytest.raises(CheckError): | ||
MyJunkTagSet(junk=1) | ||