Skip to content

test_ticker unit test is failing #2576

@skyblue6688

Description

@skyblue6688

Describe bug

Hi,

I found that the test in yfinance/tests/test_ticker.py is broken due to the following error:

======================================================================
FAIL: test_empty_info (tests.test_ticker.TestTickerInfo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/eva/Documents/GitHub/yfinance/tests/test_ticker.py", line 1045, in test_empty_info
    self.assertCountEqual(expected_keys, data.keys())
AssertionError: Element counts were not equal:

This is likely due to the fact that NEPT was de-listed from NASDAQ. Can I update this unit test to fix the issue? I'm happy to submit a PR since I'm looking to contribute to the project. Thanks!

Simple code that reproduces your problem

Simply run:

python3 -m unittest tests.test_ticker

Debug log from yf.enable_debug_mode()

N/A

Bad data proof

No response

yfinance version

Version 0.2.65

Python version

No response

Operating system

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions