Skip to content

Commit

Permalink
generate_packageTest: Use correct casing
Browse files Browse the repository at this point in the history
Classes don't use snake casing, but rather CapWords convention according
to PEP8.
  • Loading branch information
AbdealiLoKo committed Sep 3, 2016
1 parent 24598e5 commit 41aa471
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/generate_packageTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
create_upload_parser)


class touchTest(unittest.TestCase):
class TouchTest(unittest.TestCase):

def setUp(self):
if os.path.exists('TestFile.py'):
Expand All @@ -24,7 +24,7 @@ def tearDown(self):
os.remove('TestFile.py')


class create_file_from_templateTest(unittest.TestCase):
class CreateFileFromTemplateTest(unittest.TestCase):

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


class create_file_structure_for_packagesTest(unittest.TestCase):
class CreateFileStructureForPackagesTest(unittest.TestCase):

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


class create_upload_parserTest(unittest.TestCase):
class CreateUploadParserTest(unittest.TestCase):

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


class perform_registerTest(unittest.TestCase):
class PerformRegisterTest(unittest.TestCase):

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


class perform_uploadTest(unittest.TestCase):
class PerformUploadTest(unittest.TestCase):

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


class mainTest(unittest.TestCase):
class MainTest(unittest.TestCase):

CSS_BEAR_SETUP_PATH = os.path.join(
'bears', 'upload', 'CSSLintBear', 'setup.py')
Expand Down

0 comments on commit 41aa471

Please sign in to comment.