-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update test suite #2181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update test suite #2181
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6650809
WiP pyscript.web tests pass with upytest.
ntoll ec20298
Test refactoring. WiP
ntoll 762ae19
Completed refactor of old integration tests to new Python tests.
ntoll b35fb8f
Added comprehensive test suite for Python based pyodide module.
ntoll 806e574
Black.
ntoll 177cbb9
Rebuld and check websocket attribute assignment via init and as attri…
ntoll 091da6e
Update when tests to allow for worker round trips.
ntoll 4a6c5fa
Post build
ntoll 790fd26
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae66d13
Fixed config issue via polyscript update (#2182)
WebReflection e3c572d
WiP pyscript.web tests pass with upytest.
ntoll aa83e6c
Test refactoring. WiP
ntoll 263f1fc
Completed refactor of old integration tests to new Python tests.
ntoll 0eb8c43
Added comprehensive test suite for Python based pyodide module.
ntoll 6c81b5f
Black.
ntoll 43f25fd
Rebuld and check websocket attribute assignment via init and as attri…
ntoll 344e54a
Update when tests to allow for worker round trips.
ntoll f24a2cf
Post build
ntoll 6e52918
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 06216ac
Merge branch 'update-test-suite' of github.com:pyscript/pyscript into…
ntoll abc3a3b
Fix a couple of timing issues in display and web tests.
ntoll 0d7ef9d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 57e023e
Black
ntoll 58d905d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7da2ba6
Add integration tests to Makefile (and CI)
ntoll f826d0b
Remove un-needed upload action.
ntoll af6cc2b
Ensure fails are properly logged as an array. Remove the explicit tes…
ntoll aa70295
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 19bc612
Directory reorg/refactor. Updated docs.
ntoll 60622c9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c52a695
Bump polyscript.
ntoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Completed refactor of old integration tests to new Python tests.
- Loading branch information
commit 762ae191ad2af8c3e031c4600678c744a2b053bf
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,7 +1,7 @@ | ||
from pyscript import window | ||
from pyscript.ffi import to_js | ||
|
||
from pyscript import web | ||
import upytest | ||
import json | ||
|
||
result = await upytest.run("./tests") | ||
window.console.log(to_js(result)) | ||
output = web.div(json.dumps(result), id="result") | ||
web.page.append(output) |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find these two a bit confusing ... we could as well just use
has('terminal')
orhas('worker')
... not sure why we need=0
on terminal and=1
on worker ... this is a nit though, still maybe you agree.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has more to do with my shonky JS "skillz". 😉 I'll fix this up... I agree with your proposed change. It's much more readable. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was probably me suggesting these two but that's because I forgot that
?terminal&worker
are perfectly valid too as query strings parameters