use defined output_path in tsstats.tests.test_template.output-fixture and sort imports
This commit is contained in:
parent
95c516a9f3
commit
123370554a
|
@ -56,7 +56,7 @@ author = 'Thor77'
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.7'
|
version = '0.7'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.7.0'
|
release = '0.7.1'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='tsstats',
|
name='tsstats',
|
||||||
version='0.7.0',
|
version='0.7.1',
|
||||||
author='Thor77',
|
author='Thor77',
|
||||||
author_email='thor77@thor77.org',
|
author_email='thor77@thor77.org',
|
||||||
description='A simple Teamspeak stats-generator',
|
description='A simple Teamspeak stats-generator',
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import logging
|
import logging
|
||||||
|
from datetime import timedelta
|
||||||
from os import remove
|
from os import remove
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
from datetime import timedelta
|
|
||||||
from tsstats.log import parse_log
|
from tsstats.log import parse_log
|
||||||
from tsstats.template import render_template
|
from tsstats.template import render_template
|
||||||
from tsstats.utils import seconds_to_text
|
from tsstats.utils import seconds_to_text
|
||||||
|
@ -18,7 +18,7 @@ logger = logging.getLogger('tsstats')
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def output(request):
|
def output(request):
|
||||||
def clean():
|
def clean():
|
||||||
remove('tsstats/tests/res/output.html')
|
remove(output_path)
|
||||||
request.addfinalizer(clean)
|
request.addfinalizer(clean)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue