Skip to content

Commit

Permalink
Rename tests and Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
b-per committed Aug 2, 2022
1 parent eea4a5a commit eb3dd02
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/functional/configs/test_custom_node_colors_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def test__model_show_overrides_dbt_project(
assert show_actual_docs


# validation than an incorrect color in dbt_project.yml raises an exception
# validation that an incorrect color in dbt_project.yml raises an exception
class TestCustomNodeColorIncorrectColorProject:
@pytest.fixture(scope="class")
def models(self): # noqa: F811
Expand All @@ -308,15 +308,15 @@ def project_config_update(self):
}
}

def test_invalid_hex_project(
def test__invalid_color_project(
self,
project,
):
with pytest.raises(ValidationError):
run_dbt(["compile"])


# validatio than an incorrect color in the config block raises an exception
# validation that an incorrect color in the config block raises an exception
class TestCustomNodeColorIncorrectColorModelConfig:
@pytest.fixture(scope="class")
def models(self): # noqa: F811
Expand All @@ -328,15 +328,15 @@ def models(self): # noqa: F811
def project_config_update(self):
return {"models": {"+docs": {"node_color": "blue", "show": False}}}

def test_invalid_hex_config_block(
def test__invalid_color_config_block(
self,
project,
):
with pytest.raises(ValidationError):
run_dbt(["compile"])


# validatio than an incorrect color in the YML file raises an exception
# validation that an incorrect color in the YML file raises an exception
class TestCustomNodeColorIncorrectColorYMLConfig:
@pytest.fixture(scope="class")
def models(self): # noqa: F811
Expand All @@ -346,7 +346,7 @@ def models(self): # noqa: F811
def project_config_update(self):
return {"models": {"+docs": {"node_color": "blue", "show": False}}}

def test__docs_not_under_config(
def test__invalid_color_docs_not_under_config(
self,
project,
):
Expand All @@ -361,7 +361,7 @@ def test__docs_not_under_config(
with pytest.raises(ValidationError):
run_dbt(["compile"])

def test__docs_under_config(
def test__invalid_color_docs_under_config(
self,
project,
):
Expand Down

0 comments on commit eb3dd02

Please sign in to comment.