Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updated huawei_smartax display ont info #1704

Conversation

evilmonkey19
Copy link
Contributor

The command display ont info \S+ template was not matching particular versions of the same command. The command is fairly similar except for tiny details. In certain edge cases was not working. For example with the model EA5608 was not matching correctly, because the output is slightly different. Now it works! Look at file tests/huawei_smartax/display_ont_info_fsp/huawei_smartax_display_ont_info_fsp_2.raw and tests/huawei_smartax/display_ont_info_fsp/huawei_smartax_display_ont_info_fsp.raw

Also added the noqa E231 exception in tasks.py as it is not passing the flake8 tests. Now they pass. The error is due to a detection of the : in side a string. It shouldn't be detected in that case but flake8 is detecting it.

so it matches other versions of the template.

In certain edge cases was not working. For example
with the model EA5608 was not matching correctly,
because the output is slightly different. Now it
works!

Also added the noqa E231 exception in tasks.py as
it is not passing the flake8 tests. Now they pass.
The error is due to a detection of the : in side
a string. It shouldn't be detected in that case
but flake8 is detecting it.
@jvanderaa jvanderaa merged commit 69086a7 into networktocode:master May 30, 2024
14 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants