Skip to content

Commit

Permalink
smoothing method str changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Sep 24, 2020
1 parent b6785d6 commit 0b40ab8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/test_smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def it_provides_smoothed_col_pct_for_compatible_cubes(
):
transforms = {
"smoothing": {
"method": "one_side_moving_avg",
"method": "one_sided_moving_avg",
"window": window,
"show": True,
}
Expand All @@ -66,7 +66,7 @@ def it_provides_smoothed_scale_means_for_compatible_cubes(
):
transforms = {
"smoothing": {
"method": "one_side_moving_avg",
"method": "one_sidef_moving_avg",
"window": window,
"show": True,
}
Expand All @@ -88,7 +88,7 @@ def it_provides_smoothed_scale_means_for_compatible_cubes(
)
def it_does_not_smooth_col_pct_for_incompatible_cubes(self, fixture, expectation):
transforms = {
"smoothing": {"method": "one_side_moving_avg", "window": 3, "show": True}
"smoothing": {"method": "one_sided_moving_avg", "window": 3, "show": True}
}
cube = Cube(fixture, transforms=transforms)
slice_ = cube.partitions[0]
Expand All @@ -106,7 +106,7 @@ def it_doesnt_smooth_counts_when_window_is_not_valid(self):
class DescribeStrandMeansSmoothing(object):
def it_provides_smoothed_means_cat_date(self):
transforms = {
"smoothing": {"method": "one_side_moving_avg", "window": 3, "show": True}
"smoothing": {"method": "one_sided_moving_avg", "window": 3, "show": True}
}
strand_ = Cube(CR.CAT_DATE_MEAN, transforms=transforms).partitions[0]
np.testing.assert_array_almost_equal(
Expand All @@ -115,7 +115,7 @@ def it_provides_smoothed_means_cat_date(self):

def it_doesnt_smoot_means_mr_mean_filt_wgtd(self):
transforms = {
"smoothing": {"method": "one_side_moving_avg", "window": 3, "show": True}
"smoothing": {"method": "one_sided_moving_avg", "window": 3, "show": True}
}
strand_ = Cube(CR.MR_MEAN_FILT_WGTD, transforms=transforms).partitions[0]
np.testing.assert_array_almost_equal(
Expand Down

0 comments on commit 0b40ab8

Please sign in to comment.