Skip to content

Commit

Permalink
Fix Tests (#4457)
Browse files Browse the repository at this point in the history
  • Loading branch information
haneslinger authored Jan 4, 2024
1 parent 2f9666b commit 21cdf81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seed/tests/test_organization_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_columns_delete(self):

def test_report(self):
url = reverse('api:v3:organizations-report', args=[self.org.pk])
url += "?x_var=1&y_var=2&start=2000-01-01&end=2023-01-01"
url += f"?x_var=building_count&y_var=gross_floor_area&cycle_ids={Cycle.objects.first().id}"

# child user cannot
self.login_as_child_member()
Expand All @@ -192,7 +192,7 @@ def test_report(self):

def test_report_aggregated(self):
url = reverse('api:v3:organizations-report-aggregated', args=[self.org.pk])
url += "?x_var=building_count&y_var=gross_floor_area&start=2000-01-01&end=2023-01-01"
url += f"?x_var=building_count&y_var=gross_floor_area&cycle_ids={Cycle.objects.first().id}"

# child user cannot
self.login_as_child_member()
Expand All @@ -206,7 +206,7 @@ def test_report_aggregated(self):

def test_report_export(self):
url = reverse('api:v3:organizations-report-export', args=[self.org.pk])
url += "?x_var=building_count&y_var=gross_floor_area&start=2000-01-01&end=2023-01-01"
url += f"?x_var=building_count&y_var=gross_floor_area&cycle_ids={Cycle.objects.first().id}"
url += "&x_label=x&y_label=y"

# child user cannot
Expand Down

0 comments on commit 21cdf81

Please sign in to comment.