Commit aaaa6082 authored by Christian Wander's avatar Christian Wander
Browse files

restructure tests

parent 86ef9b81
.PHONY: test init rundev
test:
pipenv run python3 -m unittest
init:
pipenv install
......
......@@ -16,20 +16,9 @@ $ make rundev
run tests:
```
python3 -m unittest -v test
make test
```
Install dependencies
```
pipenv install
```
run app:
```
FLASK_APP="pixelframe" pipenv run flask run
```
## pipenv
......
import unittest
import blink
from pixelframe import blink
class TestBlink(unittest.TestCase):
......@@ -28,7 +28,7 @@ class TestBlink(unittest.TestCase):
def test_from_png(self):
t = blink.Thing(file='../data/min.png')
t = blink.Thing(file='data/min.png')
expected = [[(255, 0, 255), (255, 0, 255)],
[(0, 255, 255), (0, 255, 255)]]
......
Supports Markdown
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