Coverage for src/robotide/robotapi.py: 93%
25 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-06 10:40 +0100
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-06 10:40 +0100
1# Copyright 2008-2015 Nokia Networks
2# Copyright 2016- Robot Framework Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
16from .lib.robot.parsing import populators 1ab
17from .lib.robot.errors import DataError, VariableError, Information 1ab
18from .lib.robot.model import TagPatterns 1ab
19from .lib.robot.output import LOGGER as ROBOT_LOGGER 1ab
20# SEE BELOW
21# from .lib.robot.output.loggerhelper import LEVELS as LOG_LEVELS
22from .lib.robot.parsing.datarow import DataRow 1ab
23from .lib.robot.parsing.model import ( 1ab
24 TestCase, TestDataDirectory, ResourceFile, TestCaseFile, UserKeyword,
25 Variable, Step, ForLoop, VariableTable, KeywordTable, TestCaseTable,
26 TestCaseFileSettingTable)
27from .lib.robot.parsing.populators import FromFilePopulator 1ab
28from .lib.robot.parsing.settings import (Library, Resource, Variables, Comment, ImportSetting, Template, Fixture, 1ab
29 Documentation, Timeout, Tags, Return, Setting)
30from .lib.robot.parsing.tablepopulators import UserKeywordPopulator, TestCasePopulator 1ab
31from .lib.robot.parsing.robotreader import RobotReader 1ab
32from .lib.robot.running import TestLibrary, EXECUTION_CONTEXTS 1ab
33from .lib.robot.libraries import STDLIBS as STDLIB_NAMES 1ab
34from platform import python_version 1ab
35if python_version() >= '3.13': 35 ↛ 36line 35 didn't jump to line 36 because the condition on line 35 was never true1ab
36 STDLIB_NAMES = STDLIB_NAMES.difference(['Telnet'])
37from .lib.robot.running.usererrorhandler import UserErrorHandler 1ab
38from .lib.robot.running.arguments.embedded import EmbeddedArgumentParser 1ab
39from .lib.robot.utils import normpath, NormalizedDict 1ab
40from .lib.robot.variables import Variables as RobotVariables 1ab
41from .lib.robot.variables import is_scalar_var, is_list_var, is_var, is_dict_var, VariableSplitter 1ab
42from .lib.robot.variables.tablesetter import VariableTableReader 1ab
43from .lib.robot.version import ROBOT_VERSION, ALIAS_MARKER 1ab
44from .lib.robot.variables.filesetter import VariableFileSetter 1ab
46populators.PROCESS_CURDIR = False 1ab
48# Monkey patch LEVELS
49LOG_LEVELS = { 1ab
50 'NONE': 7,
51 'SKIP': 6,
52 'FAIL': 5,
53 'ERROR': 4,
54 'WARN': 3,
55 'INFO': 2,
56 'DEBUG': 1,
57 'TRACE': 0,
58}