Test import clean up and pep8
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import
|
||||
from .. import *
|
||||
from nose.tools import eq_
|
||||
|
||||
from talon.signature import bruteforce
|
||||
from mock import patch, Mock
|
||||
|
||||
|
||||
def test_empty_body():
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
|
||||
from six.moves import range
|
||||
|
||||
from talon.signature import bruteforce, extraction, extract
|
||||
from talon.signature import extraction as e
|
||||
from talon.signature.learning import dataset
|
||||
from .. import *
|
||||
from nose.tools import eq_
|
||||
from .. import STRIPPED, UNICODE_MSG
|
||||
from six.moves import range
|
||||
from mock import patch
|
||||
import os
|
||||
|
||||
|
||||
def test_message_shorter_SIGNATURE_MAX_LINES():
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import
|
||||
from ... import *
|
||||
import os
|
||||
|
||||
from numpy import genfromtxt
|
||||
|
||||
from talon.signature.learning import dataset as d
|
||||
|
||||
from ... import EML_MSG_FILENAME, MSG_FILENAME_WITH_BODY_SUFFIX, TMP_DIR, EMAILS_DIR
|
||||
from talon.signature.learning.featurespace import features
|
||||
from talon.signature.learning import dataset as d
|
||||
from nose.tools import eq_, assert_false, ok_
|
||||
from numpy import genfromtxt
|
||||
import os
|
||||
|
||||
|
||||
def test_is_sender_filename():
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import
|
||||
from ... import *
|
||||
|
||||
from talon.signature.learning import featurespace as fs
|
||||
from nose.tools import eq_, assert_false, ok_
|
||||
from mock import patch
|
||||
|
||||
|
||||
def test_apply_features():
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import
|
||||
from ... import *
|
||||
|
||||
import regex as re
|
||||
|
||||
from talon.signature.learning import helpers as h
|
||||
from talon.signature.learning.helpers import *
|
||||
from talon.signature.learning.helpers import RE_RELAX_PHONE, RE_NAME
|
||||
from nose.tools import eq_, ok_, assert_false, assert_in
|
||||
from mock import patch, Mock
|
||||
from six.moves import range
|
||||
import re
|
||||
|
||||
# First testing regex constants.
|
||||
VALID = '''
|
||||
|
||||
Reference in New Issue
Block a user