Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Jan 19, 2024
1 parent 076c572 commit ef0e7f7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/integration/test_cscmpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_run(
variable=variable, year=2100, scenario=scen
).convert_unit(unit)
if res_scen_2100_emms.empty:
raise AssertionError(f"No {variable} data for {scen}")
raise AssertionError(f"No {variable} data for {scen}") # noqa: TRY003

npt.assert_allclose(
res_scen_2100_emms.values,
Expand All @@ -189,13 +189,13 @@ def test_run(
variable=variable, year=2014, scenario=scen
).convert_unit(unit)
if res_scen_2014_emms.empty:
raise AssertionError(f"No {variable} data for {scen}")
raise AssertionError(f"No {variable} data for {scen}") # noqa: TRY003

res_scen_2016_emms = res.filter(
variable=variable, year=2016, scenario=scen
).convert_unit(unit)
if res_scen_2016_emms.empty:
raise AssertionError(f"No {variable} data for {scen}")
raise AssertionError(f"No {variable} data for {scen}") # noqa: TRY003

npt.assert_allclose(
res_scen_2014_emms.values,
Expand All @@ -213,7 +213,7 @@ def test_run(
):
res_scen_2015_emms = res.filter(variable=variable, year=2015, scenario=scen)
if res_scen_2015_emms.empty:
raise AssertionError(f"No CO2 emissions data for {scen}")
raise AssertionError(f"No CO2 emissions data for {scen}") # noqa: TRY003

assert not np.equal(res_scen_2015_emms.values, 0).all()

Expand Down Expand Up @@ -258,11 +258,11 @@ def test_run(
def test_variable_naming(self, test_scenarios):
missing_from_ciceroscm = (
"Effective Radiative Forcing|Aerosols|Direct Effect|BC|MAGICC AFOLU",
"Effective Radiative Forcing|Aerosols|Direct Effect|BC|MAGICC Fossil and Industrial",
"Effective Radiative Forcing|Aerosols|Direct Effect|BC|MAGICC Fossil and Industrial", # noqa: E501
"Effective Radiative Forcing|Aerosols|Direct Effect|OC|MAGICC AFOLU",
"Effective Radiative Forcing|Aerosols|Direct Effect|OC|MAGICC Fossil and Industrial",
"Effective Radiative Forcing|Aerosols|Direct Effect|OC|MAGICC Fossil and Industrial", # noqa: E501
"Effective Radiative Forcing|Aerosols|Direct Effect|SOx|MAGICC AFOLU",
"Effective Radiative Forcing|Aerosols|Direct Effect|SOx|MAGICC Fossil and Industrial",
"Effective Radiative Forcing|Aerosols|Direct Effect|SOx|MAGICC Fossil and Industrial", # noqa: E501
"Heat Uptake|Ocean",
"Net Atmosphere to Land Flux|CO2",
"Net Atmosphere to Ocean Flux|CO2",
Expand Down

0 comments on commit ef0e7f7

Please sign in to comment.