test python dependency detection and --alternate-project argument

This commit is contained in:
Alan Hamlett 2015-08-12 15:03:39 -07:00
parent 5ec3cebcdf
commit 85de7a3deb
4 changed files with 160 additions and 3 deletions

26
tests/samples/codefile.py Normal file
View file

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
import os
import django
import simplejson as json
from wakatime import utils
from mypackage.mymodule import myfunction
from . import privatemodule
try:
from mock import ANY
except ImportError:
from unittest.mock import ANY
class MyClass(object):
"""this class
"""
def method1(self):
a = 1 + 2
b = 'hello world!'
for x in y:
print(x)
raise Exception()