Skip to content

Commit 61b9815

Browse files
tweak to apese deepsource padantics. Less than ideal.
1 parent ee2cf63 commit 61b9815

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/test_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_syntax(self):
4747
print(str(type(impErr)))
4848
print(str(impErr))
4949
theResult = False
50-
assert theResult
50+
self.assertTrue(theResult)
5151

5252
def test_the_help_command(self):
5353
"""Test case for backend library."""
@@ -64,7 +64,7 @@ def test_the_help_command(self):
6464
theResult = True
6565
except Exception:
6666
theResult = False
67-
assert theResult
67+
self.assertTrue(theResult)
6868

6969
def test_corner_case_example(self):
7070
"""Example Test case for bad input directly into function."""
@@ -82,7 +82,7 @@ def test_corner_case_example(self):
8282
except Exception:
8383
self.fail("""Test Failed""")
8484
theResult = False
85-
assert theResult
85+
self.assertTrue(theResult)
8686

8787
def test_new_tests(self):
8888
"""Try adding new tests."""

tests/test_usage.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class BasicUsageTestSuite(unittest.TestCase):
164164

165165
def test_absolute_truth_and_meaning(self):
166166
"""Insanity Test. if ( is true ) usage."""
167-
assert True
167+
self.assertTrue(True)
168168

169169
def test_syntax(self):
170170
"""Test case importing code. if ( import is not None ) usage."""
@@ -178,7 +178,7 @@ def test_syntax(self):
178178
print(str(type(impErr)))
179179
print(str(impErr))
180180
theResult = False
181-
assert theResult
181+
self.assertTrue(theResult)
182182

183183
def test_template_case(self):
184184
"""Test case template for: python -m pythonrepo.* --version usage."""
@@ -217,7 +217,7 @@ def test_template_case(self):
217217
err = None
218218
del err
219219
theResult = False
220-
assert theResult
220+
self.assertTrue(theResult)
221221

222222
def test_profile_template_case(self):
223223
"""Test case template for profiling."""
@@ -255,7 +255,7 @@ def test_profile_template_case(self):
255255
err = None
256256
del err
257257
theResult = False
258-
assert theResult
258+
self.assertTrue(theResult)
259259

260260
@unittest.expectedFailure
261261
def test_fail_template_case(self):
@@ -294,7 +294,7 @@ def test_fail_template_case(self):
294294
err = None
295295
del err
296296
theResult = False
297-
assert theResult
297+
self.assertTrue(theResult)
298298

299299
@unittest.expectedFailure
300300
def test_bad_template_case(self):
@@ -333,7 +333,7 @@ def test_bad_template_case(self):
333333
err = None
334334
del err
335335
theResult = False
336-
assert theResult
336+
self.assertTrue(theResult)
337337

338338

339339
if __name__ == '__main__':

0 commit comments

Comments
 (0)