from factories import post_factory, post

from factories import post_factory, post
import os
import sys


root = os.path.join(os.path.dirname(__file__))
package = os.path.join(root, '..')
sys.path.insert(0, os.path.abspath(package))

Make the tests run just via py.test
Make the tests run just via py.test

  from factories import post_factory, post
+ import os
+ import sys
  
+ 
+ root = os.path.join(os.path.dirname(__file__))
+ package = os.path.join(root, '..')
+ sys.path.insert(0, os.path.abspath(package))
+ 
Make the tests run just via py.test
## Code Before:
from factories import post_factory, post

## Instruction:
Make the tests run just via py.test
## Code After:
from factories import post_factory, post
import os
import sys


root = os.path.join(os.path.dirname(__file__))
package = os.path.join(root, '..')
sys.path.insert(0, os.path.abspath(package))
