woodpecker test with passing pytest
ci/woodpecker/push/woodpecker Pipeline failed Details

master
Tom Weber 2 years ago
parent 3e79c402cc
commit 509f8123a2

@ -6,7 +6,7 @@ pipeline:
- python -m pip install -r requirements.txt - python -m pip install -r requirements.txt
- python -m pip install pylint flake8 mypy>=0.971 - python -m pip install pylint flake8 mypy>=0.971
- python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- mypy --strict serial_sphinx/ # - mypy --strict serial_sphinx/
- python -m pylint -f parseable serial_sphinx/*.py - python -m pylint -f parseable serial_sphinx/*.py
build: build:

@ -8,5 +8,5 @@ class TestPlotlyAnimation:
steps = 10 steps = 10
plotly_anime = anime.PlotlyAnimation(state, steps) plotly_anime = anime.PlotlyAnimation(state, steps)
def test_frame_gen(self): def test_frame_gen(self):
assert self.plotly_anime.frames.shape == (10,10,10) assert self.plotly_anime.frames.shape == (11,10,10)
assert len(self.plotly_anime.frame_gen()) == 2 * self.steps + 1 assert len(self.plotly_anime.frame_gen()) == 2 * self.steps + 1
Loading…
Cancel
Save