Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
WEISS
Software Repositories
LabelboxUtils
Commits
b45946a1
Commit
b45946a1
authored
Nov 26, 2019
by
Matt Clarkson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1
: Update to fix dummy unit tests.
parent
60cee1cb
Pipeline
#3715
failed with stages
in 2 minutes and 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
29 deletions
+13
-29
labelboxutils/ui/labelbox_export_json_app.py
labelboxutils/ui/labelbox_export_json_app.py
+0
-1
tests/pylintrc
tests/pylintrc
+1
-1
tests/test_labelbox_json_export.py
tests/test_labelbox_json_export.py
+12
-0
tests/test_labelboxutils.py
tests/test_labelboxutils.py
+0
-27
No files found.
labelboxutils/ui/labelbox_export_json_app.py
View file @
b45946a1
...
@@ -61,4 +61,3 @@ def run_labelbox_json_export(json_file, output_dir, output_format):
...
@@ -61,4 +61,3 @@ def run_labelbox_json_export(json_file, output_dir, output_format):
+
'_'
+
value
+
'.png'
)
+
'_'
+
value
+
'.png'
)
cv2
.
imwrite
(
file_name
,
rgb
)
cv2
.
imwrite
(
file_name
,
rgb
)
six
.
print_
(
"writing to:"
+
file_name
)
six
.
print_
(
"writing to:"
+
file_name
)
tests/pylintrc
View file @
b45946a1
...
@@ -32,7 +32,7 @@ unsafe-load-any-extension=no
...
@@ -32,7 +32,7 @@ unsafe-load-any-extension=no
# A comma-separated list of package or module names from where C extensions may
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
# run arbitrary code
extension-pkg-whitelist=numpy
extension-pkg-whitelist=numpy
, cv2
# Allow optimization of some AST trees. This will activate a peephole AST
# Allow optimization of some AST trees. This will activate a peephole AST
# optimizer, which will apply various small optimizations. For instance, it can
# optimizer, which will apply various small optimizations. For instance, it can
...
...
tests/test_labelbox_json_export.py
0 → 100644
View file @
b45946a1
# coding=utf-8
""" labelbox_export_json unit tests. """
from
labelboxutils.ui.labelbox_export_json_app
import
run_labelbox_json_export
import
six
# Pytest style
def
test_labelbox_export_json
():
assert
True
# Placeholder.
tests/test_labelboxutils.py
deleted
100644 → 0
View file @
60cee1cb
# coding=utf-8
"""Labelbox Utils tests"""
from
labelboxutils.ui.labelboxutils_demo
import
run_demo
from
labelboxutils.algorithms
import
addition
,
multiplication
import
six
# Pytest style
def
test_using_pytest_labelboxutils
():
x
=
1
y
=
2
verbose
=
False
multiply
=
False
expected_answer
=
3
assert
run_demo
(
x
,
y
,
multiply
,
verbose
)
==
expected_answer
def
test_addition
():
assert
addition
.
add_two_numbers
(
1
,
2
)
==
3
def
test_multiplication
():
assert
multiplication
.
multiply_two_numbers
(
2
,
2
)
==
4
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