Skip to content

Commit

Permalink
Update fixtures and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydillon committed Oct 26, 2023
1 parent 75bbca4 commit e56283e
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 8,993 deletions.
1,777 changes: 0 additions & 1,777 deletions fixtures/vcr_cassettes/django_homepage.yaml

This file was deleted.

288 changes: 0 additions & 288 deletions fixtures/vcr_cassettes/get_article_context.yaml

This file was deleted.

99 changes: 0 additions & 99 deletions fixtures/vcr_cassettes/get_complete_article.yaml

This file was deleted.

1,849 changes: 0 additions & 1,849 deletions fixtures/vcr_cassettes/get_group_context.yaml

This file was deleted.

1,849 changes: 0 additions & 1,849 deletions fixtures/vcr_cassettes/get_index_context.yaml

This file was deleted.

1,280 changes: 0 additions & 1,280 deletions fixtures/vcr_cassettes/get_tag.yaml

This file was deleted.

1,849 changes: 0 additions & 1,849 deletions fixtures/vcr_cassettes/get_topic_context.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_article_redirect(self):
)
self.assertEqual(
response.headers["Location"],
"http://localhost/testing-your-user-contract",
"/testing-your-user-contract",
)

def test_homepage(self):
Expand Down Expand Up @@ -150,7 +150,7 @@ def test_latest_redirect(self):

first_article = homepage_soup.find(id="articles").findAll("li")[0]
first_slug = first_article.find("span", {"class": "slug"}).text
first_url = f"http://localhost/{first_slug}"
first_url = f"/{first_slug}"
self.assertEqual(latest_response.headers["Location"], first_url)

def test_category_not_exist(self):
Expand Down

0 comments on commit e56283e

Please sign in to comment.