NRL-Plasma-Physics-Division / block-on-spring

TurboPy app to compute the motion of a block on a spring
0 stars 5 forks source link

Write more tests to increase coverage #2

Closed arichar6 closed 4 years ago

arichar6 commented 4 years ago

Running pytest --cov=spring . shows that 4 tests passed, but that this is only 51% coverage.

Name        Stmts   Miss  Cover
-------------------------------
spring.py      86     42    51%

There should be more tests written in order to increase test coverage.

kphlips commented 4 years ago

I can start working on this, however I don't have a way to assign myself to the issue.

kphlips commented 4 years ago

Nevermind, it seems that there is already a test in turbopy/tests for b.o.s.

arichar6 commented 4 years ago

Can you pull some of those test from the turbopy repo over to this one?

I've assigned this to you @kphlips

arichar6 commented 4 years ago

You should be able to copy the tests from turbopy/tests into the test file here.