Skip to content

Commit

Permalink
Updating tests and migrate_wrong_usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmatias authored and turicas committed Jun 30, 2024
1 parent 6dd95ec commit bd434e3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions core/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,9 @@ def setUp(self):
def test_display_dataset_table_data_with_expected_template(self):
response = self.client.get(self.url)
assert 200 == response.status_code
self.assertTemplateUsed(response, "core/dataset-detail.html")
self.assertTemplateUsed(response, "core/dataset-table-detail.html")
assert "" == response.context["search_term"]

def test_400_if_invalid_filter_choice(self):
self.login()

url = self.url + "?sample_field=xpto&search=algo"
response = self.client.get(url)
assert 400 == response.status_code
self.assertTemplateUsed(response, "core/dataset-detail.html")
assert "sample_field" in response.context["filter_form"].errors
assert "algo" == response.context["search_term"]

def test_list_table_data_in_context_as_expected(self):
data = baker.make(self.TableModel, _quantity=10)

Expand Down

0 comments on commit bd434e3

Please sign in to comment.