Skip to content

Commit

Permalink
Updated dummy test for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danyoungday committed Jul 29, 2024
1 parent 13790c6 commit 8e2fc54
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions tests/test_dummy.py
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

0 comments on commit 8e2fc54

Please sign in to comment.