Skip to content

Commit

Permalink
Update some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Oct 25, 2024
1 parent 5e52634 commit 76a0427
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qgis-app/layerdefinitions/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ def test_review_form_comment_includes_resource_name(self):
form = ResourceBaseReviewForm(resource_name="test resource")
self.assertIn(
'placeholder="Please provide clear feedback if you decided to not '
'approve this test resource." required id="id_comment"',
'approve this test resource." class="textarea" required id="id_comment"',
form.as_table(),
)
2 changes: 1 addition & 1 deletion qgis-app/models/tests/test_tagcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_get_resources_tagcloud(self):
def test_include_resources_tagcloud_modal(self):
context = Context({'request': self.factory.get('/')})
rendered = Template(
'{% load resources_tagcloud %}{% include_resources_tagcloud_modal "models" "model" %}'
'{% load resources_tagcloud %}{% include_resources_tags_modal "models" "model" %}'
).render(context)

self.assertIn('model', rendered)
Expand Down
10 changes: 5 additions & 5 deletions qgis-app/styles/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ def test_staff_should_see_moderation_detail(self):
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertContains(response, '<textarea name="comment"')
self.assertContains(
response,
'<input type="submit" ' 'class="btn btn-primary" ' 'value="Submit Review">',
html=True,
)
# self.assertContains(
# response,
# '<button type="submit" ' 'class="button is-success">',
# html=True,
# )
self.client.logout()

def test_staff_reject_and_submit_comment(self):
Expand Down

0 comments on commit 76a0427

Please sign in to comment.