Skip to content

Fix failing unit tests #120

@woodthom2

Description

@woodthom2

Description

We have recently merged a few PRs into the main Harmony library, and there are now some automated tests that are failing.

  • test_visualize_questions_gui.py - this is failing because Harmony doesn't have Matplotlib as a dependency. It's for an optional module. So we should not add Matplotlib as a dependency to the library, but we want this test to have it installed when it runs. The tests run on Github actions.
  • test_match_negative_polarity.py - I am mystified why this is failing **UPDATE - this one was fixed by @AlexNikic in PR 121 **

Environment

How to Reproduce

You can run in Pycharm

Image

You will see that some of the tests fail

Image

You can also run from the console

Image

The tests should also run in Github Actions

Image

Expected Behaviour

Tests should pass. Please don't just delete them. Maybe the problem is in the tests or maybe it's in the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededurgent

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions