Skip to content

Commit 4d7c66b

Browse files
Santhosh EdukullaGirish Shilamkar
authored andcommitted
The code module represents enum for constant comparison
This module provides facilitation to use uniform codes across various test features. Users can import this module and use these codes to maintain readability and one point of change. Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
1 parent bcadbe6 commit 4d7c66b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎tools/marvin/marvin/codes.py‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
"""
18+
@Desc : This module defines all codes, constants maintained globally \
19+
and used across marvin and its test features.The main purpose \
20+
is to maintain readability, maintain one common place for \
21+
all codes used or reused across test features. It enhances \
22+
maintainability and readability. Users just import statement \
23+
to receive all the codes mentioned here. EX: Here, we define \
24+
a code viz., ENABLED with value "Enabled",then using \
25+
this code in a sample feature say test_a.py as below. \
26+
27+
from marvinCodes import *
28+
if obj.getvalue() == ENABLED
29+
30+
@DateAdded: 20th October 2013
31+
"""
32+
33+
ENABLED = "Enabled"
34+
NETWORK_OFFERING = "network_offering"
35+
ROOT = "ROOT"

0 commit comments

Comments
 (0)