forked from zauberzeug/nicegui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into feature/client_data
# Conflicts: # nicegui/client.py
- Loading branch information
Showing
673 changed files
with
551,253 additions
and
678,578 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8 | ||
FROM --platform=linux/amd64 python:3.8 | ||
|
||
ENV POETRY_VERSION=1.6.1 \ | ||
POETRY_NO_INTERACTION=1 \ | ||
|
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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Included Web Dependencies | ||
|
||
- vue: 3.3.6 ([MIT](https://opensource.org/licenses/MIT)) | ||
- quasar: 2.13.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- tailwindcss: 3.2.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- socket.io: 4.7.2 ([MIT](https://opensource.org/licenses/MIT)) | ||
- es-module-shims: 1.8.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- aggrid: 30.2.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- vue: 3.4.38 ([MIT](https://opensource.org/licenses/MIT)) | ||
- quasar: 2.16.9 ([MIT](https://opensource.org/licenses/MIT)) | ||
- tailwindcss: 3.4.10 ([MIT](https://opensource.org/licenses/MIT)) | ||
- socket.io: 4.7.5 ([MIT](https://opensource.org/licenses/MIT)) | ||
- es-module-shims: 1.10.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- aggrid: 32.1.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- codemirror: 6.0.1 ([MIT](https://opensource.org/licenses/MIT)) | ||
- echarts: 5.4.3 ([Apache-2.0](https://opensource.org/licenses/Apache-2.0)) | ||
- echarts: 5.5.1 ([Apache-2.0](https://opensource.org/licenses/Apache-2.0)) | ||
- echarts-gl: 2.0.9 ([BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause)) | ||
- leaflet: 1.9.4 ([BSD-2-Clause](https://opensource.org/licenses/BSD-2-Clause)) | ||
- leaflet-draw: 1.0.4 ([MIT](https://opensource.org/licenses/MIT)) | ||
- mermaid: 10.5.1 ([MIT](https://opensource.org/licenses/MIT)) | ||
- nipplejs: 0.10.1 ([MIT](https://opensource.org/licenses/MIT)) | ||
- plotly: 2.27.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- three: 0.157.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- tween: 21.0.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- vanilla-jsoneditor: 0.18.10 ([ISC](https://opensource.org/licenses/ISC)) | ||
- mermaid: 11.0.2 ([MIT](https://opensource.org/licenses/MIT)) | ||
- nipplejs: 0.10.2 ([MIT](https://opensource.org/licenses/MIT)) | ||
- plotly: 2.35.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- three: 0.168.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- tween: 25.0.0 ([MIT](https://opensource.org/licenses/MIT)) | ||
- vanilla-jsoneditor: 0.23.8 ([ISC](https://opensource.org/licenses/ISC)) |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: "3.9" | ||
services: | ||
app: | ||
build: | ||
|
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 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,37 @@ | ||
import pytest | ||
|
||
from nicegui.testing import User | ||
|
||
from . import main | ||
|
||
# pylint: disable=missing-function-docstring | ||
|
||
pytest_plugins = ['nicegui.testing.user_plugin'] | ||
|
||
|
||
@pytest.mark.module_under_test(main) | ||
async def test_login_logoff(user: User) -> None: | ||
await user.open('/') | ||
user.find('Username').type('user1') | ||
user.find('Password').type('pass1') | ||
user.find('Log in').click() | ||
await user.should_see('Hello user1!') | ||
user.find('logout').click() | ||
await user.should_see('Log in') | ||
|
||
|
||
@pytest.mark.module_under_test(main) | ||
async def test_wrong_password(user: User) -> None: | ||
await user.open('/') | ||
user.find('Username').type('user1') | ||
user.find('Password').type('wrong').trigger('keydown.enter') | ||
await user.should_see('Wrong username or password') | ||
|
||
|
||
@pytest.mark.module_under_test(main) | ||
async def test_subpage_access(user: User) -> None: | ||
await user.open('/subpage') | ||
await user.should_see('Log in') | ||
user.find('Username').type('user1') | ||
user.find('Password').type('pass1').trigger('keydown.enter') | ||
await user.should_see('This is a sub page.') |
Empty file.
Oops, something went wrong.