OpenFreeEnergy / OpenFreeEnergy/openfe

TestOFECommandPlugin sometimes randomly fails

Open
#825 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority:low
Dominant language
Python
Stars
331
Forks
56
Avg merge
3d 9h
Merged PRs (30d)
13

Description

This test occasionally fails, it is almost certainly a false positive as the rest of the CLI has worked.

============================================================================================================= FAILURES =============================================================================================================
______________________________________________________________________________________________ TestOFECommandPlugin.test_plugin_setup ______________________________________________________________________________________________

self = <openfecli.tests.test_plugins.TestOFECommandPlugin object at 0x>

    def test_plugin_setup(self):
>       assert self.plugin.command is fake
E       AttributeError: 'TestOFECommandPlugin' object has no attribute 'plugin'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running TestOFECommandPlugin.test_plugin_setup from openfecli.tests.test_plugins repeatedly to reproduce the intermittent failure. Trace how the plugin is initialized before the test accesses self.plugin. Done means the test reliably initializes the plugin and no longer raises the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.