Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
28475e5b
Commit
28475e5b
authored
Jun 17, 2015
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unit test imports.
parent
da6f1bd2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
5 deletions
+30
-5
.travis.yml
.travis.yml
+2
-0
ardublocklyserver/tests/compilersettings_test.py
ardublocklyserver/tests/compilersettings_test.py
+8
-1
ardublocklyserver/tests/requesthandler_test.py
ardublocklyserver/tests/requesthandler_test.py
+8
-1
ardublocklyserver/tests/sketchcreator_test.py
ardublocklyserver/tests/sketchcreator_test.py
+10
-2
circle.yml
circle.yml
+2
-1
No files found.
.travis.yml
View file @
28475e5b
...
@@ -19,6 +19,8 @@ before_install:
...
@@ -19,6 +19,8 @@ before_install:
-
brew install libcouchbase
-
brew install libcouchbase
-
pip install mock
# Install node.js
# Install node.js
-
brew unlink node
-
brew unlink node
-
brew install node
-
brew install node
...
...
ardublocklyserver/tests/compilersettings_test.py
View file @
28475e5b
...
@@ -11,7 +11,14 @@ import os
...
@@ -11,7 +11,14 @@ import os
import
unittest
import
unittest
import
mock
import
mock
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
try
:
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
except
ImportError
:
import
sys
file_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
file_dir
))
sys
.
path
.
insert
(
0
,
package_dir
)
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
class
ServerCompilerSettingsTestCase
(
unittest
.
TestCase
):
class
ServerCompilerSettingsTestCase
(
unittest
.
TestCase
):
...
...
ardublocklyserver/tests/requesthandler_test.py
View file @
28475e5b
...
@@ -11,7 +11,14 @@ import os
...
@@ -11,7 +11,14 @@ import os
import
unittest
import
unittest
import
mock
import
mock
from
ardublocklyserver
import
requesthandler
try
:
from
ardublocklyserver
import
requesthandler
except
ImportError
:
import
sys
file_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
file_dir
))
sys
.
path
.
insert
(
0
,
package_dir
)
from
ardublocklyserver
import
requesthandler
class
BlocklyRequestHandlerTestCase
(
unittest
.
TestCase
):
class
BlocklyRequestHandlerTestCase
(
unittest
.
TestCase
):
...
...
ardublocklyserver/tests/sketchcreator_test.py
View file @
28475e5b
...
@@ -11,8 +11,16 @@ import os
...
@@ -11,8 +11,16 @@ import os
import
time
import
time
import
unittest
import
unittest
from
ardublocklyserver.sketchcreator
import
SketchCreator
try
:
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
from
ardublocklyserver.sketchcreator
import
SketchCreator
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
except
ImportError
:
import
sys
file_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
file_dir
))
sys
.
path
.
insert
(
0
,
package_dir
)
from
ardublocklyserver.sketchcreator
import
SketchCreator
from
ardublocklyserver.compilersettings
import
ServerCompilerSettings
class
SketchCreatorTestCase
(
unittest
.
TestCase
):
class
SketchCreatorTestCase
(
unittest
.
TestCase
):
...
...
circle.yml
View file @
28475e5b
...
@@ -30,9 +30,10 @@ dependencies:
...
@@ -30,9 +30,10 @@ dependencies:
-
python --version
-
python --version
-
python -c "import struct; print(struct.calcsize('P') * 8)"
-
python -c "import struct; print(struct.calcsize('P') * 8)"
# Install tkinker
# Install tkinker
and mock
-
sudo apt-get install -y python-support
-
sudo apt-get install -y python-support
-
sudo apt-get install python-tk
-
sudo apt-get install python-tk
-
pip install mock
# Install node.js
# Install node.js
-
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
-
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
...
...
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