Project

General

Profile

Actions

action #132938

open

Allow inheritance in python test modules

Added by tinita over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2023-07-18
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Currently in python tests you are limited to just use code in that one test.

Importing other python modules could at least be made possible, but inheritance is not possible because the python test module cannot be a class, so you can't have an opensusebasetest.py for example.

While the mapped perl name space inherits from basetest, the python module has to be a plain module.

Suggestions

  • The py_study_package makes it possible to introspect the python code. We could behave differently whether the module has a class or not

Related issues 1 (0 open1 closed)

Related to openQA Project (public) - action #132656: Runs only the last Python test in os-autoinst size:MResolvedtinita2023-07-132023-08-01

Actions
Actions

Also available in: Atom PDF