-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some parsing issues with nvme values #63
Conversation
rhoriguchi
commented
Mar 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some output (or directly a test) that requires your changes?
Just to take them into account in the future versions and prevent your change to be accidentally deleted
What am I doing wrong, my test file is not detected? @ralequi ___ TestListDevice.test_list_devices[./tests/dataset/listingtests/linux_01] ____
self = <tests.test_device_list.TestListDevice object at 0x7ffff68d0b80>
folder = './tests/dataset/listingtests/linux_01'
@pytest.mark.parametrize("folder", folders)
def test_list_devices(self, folder):
data = self.get_device_data(folder)
device_data: DeviceList = self.create_list_device(folder, data)
# Check that the number of devices is correct
> assert len(device_data.devices) == data['count']
E assert 1 == 2
E + where 1 = len([<NVME device on /dev/nvme0 mod:KBG30ZMV256G TOSHIBA sn:XXXXXXXXXXXX>])
E + where [<NVME device on /dev/nvme0 mod:KBG30ZMV256G TOSHIBA sn:XXXXXXXXXXXX>] = <DeviceList contents:\n<NVME device on /dev/nvme0 mod:KBG30ZMV256G TOSHIBA sn:XXXXXXXXXXXX>\n>.devices
tests/test_device_list.py:63: AssertionError |
Let me check |
Thank you @rhoriguchi ! |
@ralequi thank you for cleaning up my failing test. |