Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
phackstock committed May 17, 2023
1 parent cdddd46 commit d9de678
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion nomenclature/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def _check_requiredData(
dimensions: Optional[List[str]] = None,
required_data: Optional[str] = None,
) -> None:

dsd = DataStructureDefinition(path / definitions, dimensions)
if required_data is None:
if (path / "requiredData").is_dir():
Expand Down
1 change: 1 addition & 0 deletions tests/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_RegionCode_iso3_code_fail():
with pytest.raises(ValueError, match=error_pattern):
RegionCode(name="Western Europe", hierarchy="R5OECD", countries=countries)


def test_MetaCode_allowed_values_attribute():
meta = MetaCode(
name="MetaCode test",
Expand Down
2 changes: 0 additions & 2 deletions tests/test_region_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def test_illegal_mappings(file, error_type, error_msg_pattern):
],
)
def test_region_processor_working(region_processor_path, simple_definition):

obs = RegionProcessor.from_directory(region_processor_path, simple_definition)
exp_data = [
{
Expand Down Expand Up @@ -210,7 +209,6 @@ def test_region_processor_exclude_model_native_overlap_raises(simple_definition)


def test_region_processor_unexpected_region_raises():

test_df = IamDataFrame(
pd.DataFrame(
[
Expand Down
1 change: 0 additions & 1 deletion tests/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_hidden_character():


def test_assert_valid_structure_requiredData_raises():

with pytest.raises(ValueError) as e:
assert_valid_structure(
path=TEST_DATA_DIR / "required_data",
Expand Down

0 comments on commit d9de678

Please sign in to comment.