-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
26 changed files
with
79 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
"pytest-cov", | ||
"pytest-django", | ||
"pytest-asyncio", | ||
"daphne", # used in tests | ||
"black", | ||
"isort", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "django_nextjs/document_base.html" %} | ||
|
||
|
||
{% block head %} | ||
<title>head</title> | ||
{{ block.super }} | ||
<meta name="description" content="head"> | ||
{% endblock %} | ||
|
||
|
||
{% block body %} | ||
<span>pre_body_{{ request.path_info }}</span> | ||
{{ block.super }} | ||
<span>post_body_{{ request.path_info }}</span> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# import pytest | ||
# from playwright.async_api import Page, expect | ||
# from pytest_django.live_server_helper import LiveServer | ||
|
||
# def test_homepage_has_Playwright_in_title_and_get_started_link_linking_to_the_intro_page(page: Page): | ||
# page.goto("https://playwright.dev/") | ||
|
||
# # Expect a title "to contain" a substring. | ||
# expect(page).to_have_title(re.compile("Playwright")) | ||
|
||
# # create a locator | ||
# get_started = page.get_by_role("link", name="Get started") | ||
|
||
# # Expect an attribute "to be strictly equal" to the value. | ||
# expect(get_started).to_have_attribute("href", "/docs/intro") | ||
|
||
# # Click the get started link. | ||
# get_started.click() | ||
|
||
# # Expects the URL to contain intro. | ||
# expect(page).to_have_url(re.compile(".*intro")) | ||
|
||
|
||
# @pytest.mark.asyncio | ||
# async def test_dispatch_raises_exception_when_not_in_debug_mode(page: Page, live_server: LiveServer): | ||
# await page.goto(live_server.url + "/app") | ||
|
||
# expect(page).to_have_title("pre_body_/app") | ||
# expect(page).to_have_title("post_body_/app") | ||
|
||
# btn_goto_2 = page.get_by_role("link", name="/app/second") | ||
# expect(btn_goto_2).to_have_attribute("href", "/app/second") | ||
|
||
# btn_goto_2.click() | ||
|
||
# expect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters