OpenSlides / OpenSlides/openslides-backend

[RelDB] Fix and cleanup test framework

Open
#3,320 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

clean up
Dominant language
Python
Stars
9
Forks
40
Avg merge
1d 22h
Merged PRs (30d)
19

Description

  • system/base.py:
    • in tearDown function: Investigate if smth like ShutdownService need to be called again.
    • write using events in set_committee_management_level, so the committee manager_ids don't need to be loaded and re-calculated all the time.
  • f.E. poll/test_delete.py and poll/test_reset.py: Performance tests seem not to work, perhaps the ones in other files don't either. They should be fixed or replaced with a different approach.

Contributor guide

No contributing guide indexed for this repository

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 with system/base.py, focusing on tearDown and set_committee_management_level. Then inspect poll/test_delete.py and poll/test_reset.py and run their performance tests to determine whether they work; review related test files if needed. Done means teardown behavior is verified, committee management updates use the intended approach, and broken performance tests are fixed or replaced.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.