Skip to content

Commit 41aa471

Browse files
committed
generate_packageTest: Use correct casing
Classes don't use snake casing, but rather CapWords convention according to PEP8.
1 parent 24598e5 commit 41aa471

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/generate_packageTest.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
create_upload_parser)
1010

1111

12-
class touchTest(unittest.TestCase):
12+
class TouchTest(unittest.TestCase):
1313

1414
def setUp(self):
1515
if os.path.exists('TestFile.py'):
@@ -24,7 +24,7 @@ def tearDown(self):
2424
os.remove('TestFile.py')
2525

2626

27-
class create_file_from_templateTest(unittest.TestCase):
27+
class CreateFileFromTemplateTest(unittest.TestCase):
2828

2929
SUBST_FILE = os.path.join(
3030
'tests', 'generate_package_input_files', 'substituted_file.py')
@@ -42,7 +42,7 @@ def tearDown(self):
4242
os.remove(self.SUBST_FILE)
4343

4444

45-
class create_file_structure_for_packagesTest(unittest.TestCase):
45+
class CreateFileStructureForPackagesTest(unittest.TestCase):
4646

4747
INIT_FILE_PATH = os.path.join('folder', 'Test', 'coalaTest', '__init__.py')
4848
BEAR_FILE_PATH = os.path.join('folder', 'Test', 'coalaTest', 'Test.py')
@@ -57,13 +57,13 @@ def tearDown(self):
5757
shutil.rmtree('folder')
5858

5959

60-
class create_upload_parserTest(unittest.TestCase):
60+
class CreateUploadParserTest(unittest.TestCase):
6161

6262
def test_parser(self):
6363
self.assertTrue(create_upload_parser().parse_args(['--upload']).upload)
6464

6565

66-
class perform_registerTest(unittest.TestCase):
66+
class PerformRegisterTest(unittest.TestCase):
6767

6868
@patch('subprocess.call')
6969
def test_command(self, call_mock):
@@ -74,15 +74,15 @@ def test_command(self, call_mock):
7474
'MarkdownBear-0.8.0.dev20160623094115-py3-none-any.whl')])
7575

7676

77-
class perform_uploadTest(unittest.TestCase):
77+
class PerformUploadTest(unittest.TestCase):
7878

7979
@patch('subprocess.call')
8080
def test_command(self, call_mock):
8181
perform_upload('.')
8282
call_mock.assert_called_with(['twine', 'upload', './dist/*'])
8383

8484

85-
class mainTest(unittest.TestCase):
85+
class MainTest(unittest.TestCase):
8686

8787
CSS_BEAR_SETUP_PATH = os.path.join(
8888
'bears', 'upload', 'CSSLintBear', 'setup.py')

0 commit comments

Comments
 (0)