Skip to content

Commit

Permalink
Remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Z-D committed May 20, 2023
1 parent 2158ad1 commit a90c129
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,6 @@
import StocksMA.StocksMA as stm


@pytest.mark.parametrize(
"company",
[
"CIH",
"maroc telecom",
"involys",
"total",
"telecom",
"label",
"central",
"sothema",
"MNG",
"salaf",
"CIH",
"Auto Nejma",
],
)
def test_get_isin_company(company) -> None:
obj = stm.get_isin(company)
assert len(obj[1]) != 0
assert isinstance(obj, tuple)


@pytest.mark.parametrize(
"not_company",
[
"",
"123",
"aaaaa",
"bank",
"maroc",
"agricol",
"centrale",
],
)
@pytest.mark.xfail(raises=Exception)
def test_get_isin_not_company(not_company) -> None:
stm.get_isin(not_company)


def test_get_market_status() -> None:
stat = stm.get_market_status()
assert isinstance(stat, str)

0 comments on commit a90c129

Please sign in to comment.