fossasia / knittingpattern

A Python Library for Knitting Patterns
https://pypi.python.org/pypi/knittingpattern
GNU Lesser General Public License v3.0
1.57k stars 30 forks source link

Kniteditor adaptions #67

Closed niccokunzmann closed 8 years ago

niccokunzmann commented 8 years ago
import file mismatch:
imported module 'test_utils' has this __file__ attribute:
  C:\knitting\KivyInstaller\lib\site-packages\knittingpattern\test\test_utils.py
which is not the same as the test file we want to collect:
  C:\knitting\KivyInstaller\lib\site-packages\AYABInterface\test\test_utils.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
 ERROR at setup of TestColorsToBinary.test_conversion[rows0-expected_needles0]
ScopeMismatch: You tried to access the 'function' scoped fixture 'patterns' with a 'module' scoped request object, involved factories
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:27:  def svg(path)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:22:  def path(patterns)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\test\test_change_row_mapping.py:5:  def patterns()
 ERROR at setup of TestColorsToBinary.test_conversion[rows1-expected_needles1]
ScopeMismatch: You tried to access the 'function' scoped fixture 'patterns' with a 'module' scoped request object, involved factories
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:27:  def svg(path)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:22:  def path(patterns)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\test\test_change_row_mapping.py:5:  def patterns()
 ERROR at setup of TestColorsToBinary.test_conversion[rows2-expected_needles2]
ScopeMismatch: You tried to access the 'function' scoped fixture 'patterns' with a 'module' scoped request object, involved factories
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:27:  def svg(path)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\convert\test\test_save_as_svg.py:22:  def path(patterns)
..\..\..\..\..\..\knitting\KivyInstaller\lib\site-packages\knittingpattern\test\test_change_row_mapping.py:5:  def patterns()