Skip to content

Commit

Permalink
PEP8 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzomicodxc committed Jul 29, 2022
1 parent 22b3e50 commit 91c7cf4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/integrationtest/python/issue_862_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of PyBuilder
#
# Copyright 2011-2021 PyBuilder Team
# Copyright 2011-2022 PyBuilder Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,18 +20,17 @@
import unittest

from itest_support import IntegrationTestSupport
from pybuilder.errors import BuildFailedException


class Issue862Test(IntegrationTestSupport):
def test(self):
self.write_build_file(textwrap.dedent("""
from pybuilder.core import use_plugin
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.coverage")
name = "issue_862_tests"
"""))

Expand All @@ -41,7 +40,7 @@ def test(self):
self.write_file("src/main/python/code/__init__.py", textwrap.dedent(
"""
from .two import return_two
def return_one():
return 1
"""
Expand All @@ -56,11 +55,11 @@ def return_two():
"""
import unittest
import code
class CodeTests(unittest.TestCase):
def test_code(self):
self.assertEqual(code.return_one(), 1)
def test_return_two(self):
self.assertEqual(code.return_two(), 2)
"""))
Expand Down

0 comments on commit 91c7cf4

Please sign in to comment.