From 0121aa0bfb7f462f8d13a139aed448341fc98dca Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Sat, 2 Apr 2016 15:29:51 +0200 Subject: [PATCH] REFACTOR add PEP8-newlines --- test/test_cli.py | 1 + test/test_function_text.py | 3 +++ test/test_load_module.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/test/test_cli.py b/test/test_cli.py index 331eff6..03beb2d 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -28,6 +28,7 @@ printer: testfile=DEVFILE, ) + class TestCLI: """ Contains setups, teardowns, and tests for CLI """ diff --git a/test/test_function_text.py b/test/test_function_text.py index 2ad7bd1..b0b1ca1 100644 --- a/test/test_function_text.py +++ b/test/test_function_text.py @@ -21,6 +21,7 @@ import filecmp devfile = 'testfile' + def setup_testfile(): """create a testfile as devfile""" fhandle = open(devfile, 'a') @@ -29,10 +30,12 @@ def setup_testfile(): finally: fhandle.close() + def teardown_testfile(): """destroy testfile again""" os.remove(devfile) + @with_setup(setup_testfile, teardown_testfile) def test_function_text_dies_ist_ein_test_lf(): """test the text printing function with simple string and compare output""" diff --git a/test/test_load_module.py b/test/test_load_module.py index 0cfcce9..daf94b4 100644 --- a/test/test_load_module.py +++ b/test/test_load_module.py @@ -19,6 +19,7 @@ import os devfile = 'testfile' + def setup_testfile(): """create a testfile as devfile""" fhandle = open(devfile, 'a') @@ -27,10 +28,12 @@ def setup_testfile(): finally: fhandle.close() + def teardown_testfile(): """destroy testfile again""" os.remove(devfile) + @with_setup(setup_testfile, teardown_testfile) def test_instantiation(): """test the instantiation of a escpos-printer class and basic printing"""