src/eric7/Testing/__init__.py

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 11090
f5f5f5803935
child 11118
967a88a16a21
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

# -*- coding: utf-8 -*-

# Copyright (c) 2022 - 2025 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Package implementing testing functionality and interface to various test
frameworks.
"""

from .Interfaces import FrameworkNames


def supportedLanguages():
    """
    Function to get a list of supported programming languages.

    @return list of supported programming languages
    @rtype list of str
    """
    return list(FrameworkNames)


def isLanguageSupported(language):
    """
    Function to check, if the given programming language is supported by any
    testing framework.

    @param language programming language
    @type str
    @return flag indicating support
    @rtype bool
    """
    return language in FrameworkNames

eric ide

mercurial