sort imports
This commit is contained in:
parent
587a083895
commit
2054a203c9
|
@ -1,9 +1,11 @@
|
|||
import configparser
|
||||
from os import remove
|
||||
from os.path import exists
|
||||
from tsstats import parse_config, exceptions, gen_abspath
|
||||
|
||||
from nose.tools import raises, with_setup
|
||||
|
||||
from tsstats import exceptions, gen_abspath, parse_config
|
||||
|
||||
configpath = gen_abspath('tests/res/test.cfg')
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
from tsstats import parse_logs, main, exceptions
|
||||
from os import remove
|
||||
|
||||
from nose.tools import raises
|
||||
|
||||
from tsstats import exceptions, main, parse_logs
|
||||
|
||||
clients = parse_logs('tests/res/test.log')
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from glob import glob
|
||||
|
||||
import pep8
|
||||
from pyflakes.api import checkPath
|
||||
from glob import glob
|
||||
|
||||
|
||||
def test_pep8_comformance():
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
from bs4 import BeautifulSoup
|
||||
from tsstats import parse_logs, render_template, _format_seconds
|
||||
from os import remove
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from tsstats import _format_seconds, parse_logs, render_template
|
||||
|
||||
output_path = 'tests/res/output.html'
|
||||
clients = parse_logs('tests/res/test.log')
|
||||
|
||||
|
|
27
tsstats.py
27
tsstats.py
|
@ -1,16 +1,17 @@
|
|||
import re
|
||||
import glob
|
||||
import json
|
||||
import logging
|
||||
import argparse
|
||||
import datetime
|
||||
from os import sep
|
||||
import configparser
|
||||
from time import strftime, localtime
|
||||
from os.path import exists
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import datetime
|
||||
import glob
|
||||
import json
|
||||
import logging
|
||||
import re
|
||||
from os import sep
|
||||
from os.path import exists
|
||||
from time import localtime, strftime
|
||||
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
|
||||
class Exceptions:
|
||||
class ConfigNotFound(Exception):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue