Skip to content

Commit

Permalink
version 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Nov 2, 2024
1 parent 84f52a4 commit a80d138
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions BharatFinTrack/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,17 @@ def sip_growth(
df['Multiple (X)'] = df['Value'] / df['Invest']

return df

def _github_action(
self,
integer: int
) -> str:

'''
A simple function that converts an integer to a string,
which can trigger a GitHub action due to the modification of a '.py' file.
'''

output = str(integer)

return output
9 changes: 9 additions & 0 deletions tests/test_bharatfintrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,12 @@ def test_error_sip_growth(
years=20
)
assert exc_info.value.args[0] == "Select a valid frequency from ['yearly', 'quarterly', 'monthly', 'weekly']"


def test_github_action(
core
):

assert core._github_action(
integer=1
) == '1'

0 comments on commit a80d138

Please sign in to comment.