Skip to content

Commit

Permalink
github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Sep 11, 2024
1 parent eddc0c4 commit 2c4307b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ For detailed information, see the [documentation](https://bharatfintrack.readthe
| Staus | ![PyPI - Status](https://img.shields.io/pypi/status/BharatFinTrack) |
| License | ![PyPI - License](https://img.shields.io/pypi/l/BharatFinTrack) |
| Documemt | [![Documentation Status](https://readthedocs.org/projects/bharatfintrack/badge/?version=latest)](https://bharatfintrack.readthedocs.io/en/latest/?badge=latest) |
| GitHub | [![flake8](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml) [![mypy](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml) [![pytest](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml)|
| GitHub | [![flake8](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml/badge.svg?branch=master)](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml) [![mypy](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml/badge.svg?branch=master)](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml) [![pytest](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml/badge.svg?branch=master)](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml)|
13 changes: 0 additions & 13 deletions tests/test_nse_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,3 @@ def test_get_index_base_value(
with pytest.raises(Exception) as exc_info:
class_instance.get_index_base_value('non-existence')
assert exc_info.value.args[0] == 'Invalid index: non-existence'


def test_get_index_base_value_new(
class_instance
):

assert class_instance.get_index_base_value('NIFTY 50') == 1000.0
assert class_instance.get_index_base_value('NIFTY IT') == 100.0

# error test
with pytest.raises(Exception) as exc_info:
class_instance.get_index_base_value('non-existence')
assert exc_info.value.args[0] == 'Invalid index: non-existence'

0 comments on commit 2c4307b

Please sign in to comment.