Project

General

Profile

Actions

action #132938

open

Allow inheritance in python test modules

Added by tinita 10 months ago. Updated 10 months 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 - action #132656: Runs only the last Python test in os-autoinst size:MResolvedtinita2023-07-132023-08-01

Actions
Actions #1

Updated by tinita 10 months ago

  • Description updated (diff)
Actions #2

Updated by okurz 10 months ago

  • Target version set to future
Actions #3

Updated by tinita 10 months ago

  • Related to action #132656: Runs only the last Python test in os-autoinst size:M added
Actions

Also available in: Atom PDF