Skip to content

Commit

Permalink
Skipe unique ticker check for symbol scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashGordon committed Sep 2, 2021
1 parent bd675cc commit 0b93f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/symbolscannersymbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pip install tox
- name: Run tests
run: |
tox
SKIP_UNIQUE_TICKER_CHECK=1 tox
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
Expand Down
5 changes: 5 additions & 0 deletions tests/test_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file.
"""
import os
import unittest
import yfinance as yf
from functools import reduce
Expand Down Expand Up @@ -379,6 +380,10 @@ def test_index_to_yahoo(self):
swi = stock_data.index_to_yahoo_symbol('Switzerland 20')
self.assertEqual('^SSMI', swi)

@pytest.mark.skipif(
os.getenv('SKIP_UNIQUE_TICKER_CHECK') is not None,
reason='Skipped by env setting',
)
def test_unique_ticker_symbols(self):
stock_data = PyTickerSymbols()
ctx = Counter(
Expand Down

0 comments on commit 0b93f99

Please sign in to comment.