apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
64 stars 72 forks source link

Fix warnings in develop-aplus tests #1370

Closed mikaelGusse closed 1 month ago

mikaelGusse commented 1 month ago

Description

What?

Pytest in in the develop-aplus repository produces lots of warnings most of which are unnecessary and originate from our used 3rd party libraries or old migration files. This pull request features some fixes to these warnings and adjustments to the pytest.ini file to avoid these warnings. This pr integrates the changes needed to the aplus repo. PR https://github.com/apluslms/develop-aplus/pull/1

Why?

Easier to see real warnings and errors when the test result isn't filled with non-relevant warnings.

How?

Adjustments to the pytest.ini in develop-aplus and small changes to aplus repo code

Fixes #1359

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

Think of what is affected by these changes and could become broken

Translation

Programming style

Have you updated the README or other relevant documentation?

Is it Done?

Clean up your git commit history before submitting the pull request!