Commit b45946a1 authored by Matt Clarkson's avatar Matt Clarkson

Issue #1: Update to fix dummy unit tests.

parent 60cee1cb
Pipeline #3715 failed with stages
in 2 minutes and 23 seconds
......@@ -61,4 +61,3 @@ def run_labelbox_json_export(json_file, output_dir, output_format):
+ '_' + value + '.png')
cv2.imwrite(file_name, rgb)
six.print_("writing to:" + file_name)
......@@ -32,7 +32,7 @@ unsafe-load-any-extension=no
# 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
# run arbitrary code
extension-pkg-whitelist=numpy
extension-pkg-whitelist=numpy, cv2
# Allow optimization of some AST trees. This will activate a peephole AST
# optimizer, which will apply various small optimizations. For instance, it can
......
# 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.
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment