title: flask module import failure from test folder
body: <p>How do I import modules located up (out of a test folder) and then back down my app folder structure?</p>
  
  <p>in the app_test.py folder I want to </p>
  
  <pre><code>from app.models import User
  </code></pre>
  
  <p>running </p>
  
  <pre><code>/bin/python app_test.py
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>no modules named app.models
  </code></pre>
  
  <p>I have an app_test.py file that worked until i did some shuffling, and now i'm not sure why My imports are not working when running tests from my test folder.  I'm vitrualenv'd into my apps main folder and here's the basic layout minus superfluous folders/files:</p>
  
  <pre><code>/application
  
    /(leaving out folders bin build lib local...)
    /src
      /test
           __init__.py
           app_test.py
      /app 
           models.py
           forms.py
           __init__.py
           views.py
          /static
          /templates
          /tmp
  </code></pre>
  
  <p>What should my import be?  I notice that the mega tutorial just uses a test.py file instead of a folder.  is that the best way to do it, and if not, where should my test folder be located?   It is driving me nuts.</p>