Skip to content

Commit

Permalink
Remove line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Jan 4, 2022
1 parent 004363c commit cd9491d
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,7 @@ def test_decodes_months_with_a_reference_date_at_the_start_of_the_month(self):
"time": xr.DataArray(
name="time",
data=np.array(
[
"2000-02-01",
"2000-03-01",
"2000-04-01",
],
["2000-02-01", "2000-03-01", "2000-04-01"],
dtype="datetime64",
),
dims=["time"],
Expand Down Expand Up @@ -414,11 +410,7 @@ def test_decodes_months_with_a_reference_date_at_the_middle_of_the_month(self):
"time": xr.DataArray(
name="time",
data=np.array(
[
"2000-02-15",
"2000-03-15",
"2000-04-15",
],
["2000-02-15", "2000-03-15", "2000-04-15"],
dtype="datetime64",
),
dims=["time"],
Expand Down Expand Up @@ -462,11 +454,7 @@ def test_decodes_months_with_a_reference_date_at_the_end_of_the_month(self):
"time": xr.DataArray(
name="time",
data=np.array(
[
"2000-01-31",
"2000-02-29",
"2000-03-31",
],
["2000-01-31", "2000-02-29", "2000-03-31"],
dtype="datetime64",
),
dims=["time"],
Expand Down Expand Up @@ -510,11 +498,7 @@ def test_decodes_months_with_a_reference_date_on_a_leap_year(self):
"time": xr.DataArray(
name="time",
data=np.array(
[
"2000-03-29",
"2000-04-29",
"2000-05-29",
],
["2000-03-29", "2000-04-29", "2000-05-29"],
dtype="datetime64",
),
dims=["time"],
Expand Down Expand Up @@ -558,11 +542,7 @@ def test_decodes_years_with_a_reference_date_at_the_middle_of_the_year(self):
"time": xr.DataArray(
name="time",
data=np.array(
[
"2001-06-01",
"2002-06-01",
"2003-06-01",
],
["2001-06-01", "2002-06-01", "2003-06-01"],
dtype="datetime64",
),
dims=["time"],
Expand Down Expand Up @@ -764,19 +744,15 @@ def callable(ds):
expected["time"] = xr.DataArray(
name="time",
data=np.array(
[
"2000-01-01",
],
["2000-01-01"],
dtype="datetime64",
),
dims=["time"],
)
expected["time_bnds"] = xr.DataArray(
name="time_bnds",
data=np.array(
[
["1999-12-01", "2000-01-01"],
],
[["1999-12-01", "2000-01-01"]],
dtype="datetime64",
),
dims=["time", "bnds"],
Expand Down

0 comments on commit cd9491d

Please sign in to comment.