RedHatInsights / insights-core

Insights Core is a data collection and processing framework used by Red Hat Insights
https://cloud.redhat.com/insights
Apache License 2.0
150 stars 175 forks source link

1866 tests deselected fedora30 #2315

Open code-with-amitk opened 4 years ago

code-with-amitk commented 4 years ago

After pytest failure I carried on: https://github.com/RedHatInsights/insights-core/issues/2314

Following https://insights-core-tutorials.readthedocs.io/en/latest/customtut_parsers.html

cd mycomponents/parsers touch secure_shell.py vim secure_shell.py from insights import Parser, parser from insights.specs import Specs

@parser(Specs.sshd_config) class SSHDConfig(Parser):

def parse_content(self, content):
    pass

cd .. vim tests/test_secure_shell.py from mycomponents.parsers.secure_shell import SSHDConfig

def test_sshd_config(): pass

insights-core]# pytest -k secure_shell ====================================================== test session starts ======================================================= platform linux -- Python 3.7.4, pytest-3.0.6, py-1.8.0, pluggy-0.4.0 rootdir: /root/insights-core/insights-core, inifile: setup.cfg plugins: cov-2.4.0 collected 1866 items

===================================================== 1866 tests deselected ====================================================== ================================================ 1866 deselected in 6.82 seconds =

bfahr commented 3 years ago

@amitkumar50 is the problem that the tests are deselected? I think this is really just a setup problem, perhaps its related to unclear or incomplete instructions on the insights-core-tutorials repo? If this is still a problem would you please open an issue there instead.