-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dummy test for github actions
- Loading branch information
1 parent
13790c6
commit 8e2fc54
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
""" | ||
Dummy test for the dummy module. | ||
Dummy test to test Github actions. | ||
""" | ||
import unittest | ||
|
||
from src.prsdk.dummy import compute_percent_change | ||
|
||
|
||
class TestDummy(unittest.TestCase): | ||
""" | ||
Tests for the dummy module. | ||
A fake test that always returns true. | ||
""" | ||
def test_pct_change(self): | ||
def test_dummy(self): | ||
""" | ||
Tests the compute_percent_change function. | ||
It should return the input divided by 100. | ||
A test that always returns true. | ||
""" | ||
self.assertEqual(compute_percent_change(100), 1.0) | ||
self.assertEqual(compute_percent_change(50), 0.5) | ||
self.assertEqual(compute_percent_change(0), 0.0) | ||
# pylint: disable=redundant-unittest-assert | ||
self.assertTrue(True) | ||
# pylint: enable=redundant-unittest-assert |