test python dependency detection and --alternate-project argument
This commit is contained in:
parent
5ec3cebcdf
commit
85de7a3deb
4 changed files with 160 additions and 3 deletions
26
tests/samples/codefile.py
Normal file
26
tests/samples/codefile.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue