Apr. 7th, 2013

geekchick77: (Default)
So, this weekend has been frustrating. On Friday, I got Django unit tests for my work codebase running in PyCharm. I was very pleased, because visual debugging and in-editor code coverage are fantastic!

So, I get home, update my code, and try to run unit tests... and an import fails with:
AttributeError: 'module' object has no attribute 'Products'
Not a regular import, but a call to __import__() buried deep in the test runner code.

The gory details... )

TL;DR
* OS X is sort-of case-insensitive
* The results of os.getcwd() and the contents of sys.modules are unpredictable with respect to capitalization
* The nose test runner contains some case-sensitive code

Profile

geekchick77: (Default)
Jessamyn Smith

November 2016

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
272829 30   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2017 10:50 am
Powered by Dreamwidth Studios