Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_exclude_plug(self):
sys.argv = ["rpg", "--disable-plugin", str("TestPlugin")]
conf = Conf()
conf.parse_cmdline()
self.assertEqual(str(["TestPlugin"]), str(conf.exclude))
def test_include_dir(self):
sys.argv = ["rpg", "--plugin-dir", str(self.test_project_dir / "py")]
conf = Conf()
conf.parse_cmdline()
self.assertEqual(str(['tests/project/py']), str(conf.directories))
def __init__(self):
self.conf = Conf()
self._setup_logging()
self._project_builder = ProjectBuilder()
self.spec = Spec()
self.sack = None
self._package_builder = PackageBuilder()