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
4879b77e
Commit
4879b77e
authored
Oct 15, 2018
by
Michael Droettboom
Committed by
GitHub
Oct 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #223 from rth/pure-python-tests
TST Add ability to run pure python tests
parents
8bceb441
43619256
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
.circleci/config.yml
.circleci/config.yml
+11
-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
+18
-0
No files found.
.circleci/config.yml
View file @
4879b77e
...
...
@@ -69,6 +69,15 @@ jobs:
command
:
|
pytest test -v -k chrome
test-python
:
<<
:
*defaults
steps
:
-
checkout
-
run
:
name
:
test
command
:
|
pytest test -v -k 'not (chrome or firefox)'
benchmark
:
<<
:
*defaults
steps
:
...
...
@@ -106,6 +115,7 @@ workflows:
-
test-firefox
:
requires
:
-
build
-
test-python
-
benchmark
:
requires
:
-
build
...
...
@@ -113,6 +123,7 @@ workflows:
requires
:
-
test-chrome
-
test-firefox
-
test-python
filters
:
branches
:
only
:
master
test/test_numpy.py
→
test/
packages/
test_numpy.py
View file @
4879b77e
File moved
test/test_pandas.py
→
test/
packages/
test_pandas.py
View file @
4879b77e
File moved
test/src/test_pyodide.py
0 → 100644
View file @
4879b77e
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
import matplotlib.pyplot as plt
"""
))
assert
set
(
res
)
==
{
'numpy'
,
'scipy'
,
'six'
,
'matplotlib'
}
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