Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
00db2a4b
Commit
00db2a4b
authored
Oct 15, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ability to run pure python tests
parent
ccd852c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
.circleci/config.yml
.circleci/config.yml
+13
-0
test/packages/test_numpy.py
test/packages/test_numpy.py
+0
-0
test/packages/test_pandas.py
test/packages/test_pandas.py
+0
-0
test/src/test_pyodide.py
test/src/test_pyodide.py
+17
-0
No files found.
.circleci/config.yml
View file @
00db2a4b
...
...
@@ -69,6 +69,17 @@ jobs:
command
:
|
pytest test -v -k chrome
test-python
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
.
-
run
:
name
:
test
command
:
|
pytest test -v -k 'not (chrome or firefox)'
benchmark
:
<<
:
*defaults
steps
:
...
...
@@ -106,6 +117,7 @@ workflows:
-
test-firefox
:
requires
:
-
build
-
test-python
-
benchmark
:
requires
:
-
build
...
...
@@ -113,6 +125,7 @@ workflows:
requires
:
-
test-chrome
-
test-firefox
-
test-python
filters
:
branches
:
only
:
master
test/test_numpy.py
→
test/
packages/
test_numpy.py
View file @
00db2a4b
File moved
test/test_pandas.py
→
test/
packages/
test_pandas.py
View file @
00db2a4b
File moved
test/src/test_pyodide.py
0 → 100644
View file @
00db2a4b
import
sys
from
pathlib
import
Path
from
textwrap
import
dedent
sys
.
path
.
append
(
str
(
Path
(
__file__
).
parents
[
2
]
/
'src'
))
from
pyodide
import
find_imports
# noqa: E402
def
test_find_imports
():
res
=
find_imports
(
dedent
(
"""
import six
import numpy as np
from scipy import sparse
"""
))
assert
set
(
res
)
==
{
'numpy'
,
'scipy'
,
'six'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment