Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoodkhan82 committed Jun 19, 2019
1 parent 1ca0519 commit 779514f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
- run:
command: |
. venv/bin/activate
cd test
python3 -m unittest
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/
path: test-reports/
8 changes: 4 additions & 4 deletions test/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TestSketchpad(unittest.TestCase):
def test_path_exists(self):
inp = inputs.Sketchpad()
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_preprocessing(self):
inp = inputs.Sketchpad()
Expand All @@ -23,7 +23,7 @@ class TestWebcam(unittest.TestCase):
def test_path_exists(self):
inp = inputs.Webcam()
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
self.assertFalse(os.path.exists(os.path.join('..', PACKAGE_NAME, path))) # Note implemented yet.
self.assertFalse(os.path.exists(os.path.join(PACKAGE_NAME, path))) # Note implemented yet.

def test_preprocessing(self):
inp = inputs.Webcam()
Expand All @@ -35,7 +35,7 @@ class TestTextbox(unittest.TestCase):
def test_path_exists(self):
inp = inputs.Textbox()
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_preprocessing(self):
inp = inputs.Textbox()
Expand All @@ -47,7 +47,7 @@ class TestImageUpload(unittest.TestCase):
def test_path_exists(self):
inp = inputs.ImageUpload()
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_preprocessing(self):
inp = inputs.ImageUpload()
Expand Down
6 changes: 3 additions & 3 deletions test/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestLabel(unittest.TestCase):
def test_path_exists(self):
out = outputs.Label()
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_postprocessing_string(self):
string = 'happy'
Expand Down Expand Up @@ -51,7 +51,7 @@ class TestTextbox(unittest.TestCase):
def test_path_exists(self):
out = outputs.Textbox()
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_postprocessing(self):
string = 'happy'
Expand All @@ -64,7 +64,7 @@ class TestImage(unittest.TestCase):
def test_path_exists(self):
out = outputs.Image()
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))

def test_postprocessing(self):
string = BASE64_IMG
Expand Down

0 comments on commit 779514f

Please sign in to comment.