From 2c4307bddcb334f97c40466d8d9c9e845fed1cae Mon Sep 17 00:00:00 2001 From: Debasish Pal <48341250+debpal@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:48:43 +0300 Subject: [PATCH] github action test --- README.md | 2 +- tests/test_nse_track.py | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index f9ad290..d0d446a 100644 --- a/README.md +++ b/README.md @@ -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)| diff --git a/tests/test_nse_track.py b/tests/test_nse_track.py index 0f3d3e5..b90b135 100644 --- a/tests/test_nse_track.py +++ b/tests/test_nse_track.py @@ -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'