From 123370554ae77cd89e2a7b8c80a02fb0fb684b11 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 12 Jun 2016 18:39:56 +0200 Subject: [PATCH] use defined output_path in tsstats.tests.test_template.output-fixture and sort imports --- docs/source/conf.py | 2 +- setup.py | 2 +- tsstats/tests/test_template.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 454098a..fd99d1c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,7 +56,7 @@ author = 'Thor77' # The short X.Y version. version = '0.7' # 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 # for a list of supported languages. diff --git a/setup.py b/setup.py index 0cbea8e..4a268ff 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='tsstats', - version='0.7.0', + version='0.7.1', author='Thor77', author_email='thor77@thor77.org', description='A simple Teamspeak stats-generator', diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py index 78fe1aa..9652cd5 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -1,10 +1,10 @@ import logging +from datetime import timedelta from os import remove import pytest from bs4 import BeautifulSoup -from datetime import timedelta from tsstats.log import parse_log from tsstats.template import render_template from tsstats.utils import seconds_to_text @@ -18,7 +18,7 @@ logger = logging.getLogger('tsstats') @pytest.fixture def output(request): def clean(): - remove('tsstats/tests/res/output.html') + remove(output_path) request.addfinalizer(clean)