Changeset 76c37a9 in flex_extract.git for Source/Pythontest/TestInput.py
- Timestamp:
- Dec 19, 2019, 8:11:12 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- d720895
- Parents:
- d2b7217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Pythontest/TestInput.py
rba99230 r76c37a9 1 #!/usr/bin/env python 1 #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 … … 6 6 import pytest 7 7 8 sys.path.append('../ python')9 from classes.ControlFile import ControlFile10 from mods.tools import get_cmdline_arguments8 sys.path.append('../Python') 9 from Classes.ControlFile import ControlFile 10 from Mods.tools import get_cmdline_args 11 11 12 12 … … 21 21 # 2. check of parameter 22 22 23 def __init__(self): 23 @classmethod 24 def setup_class(self): 24 25 # Default values for ArgumentParser 25 26 self.args = {'start_date':None, … … 36 37 'job_template':'job.temp', 37 38 'queue':None, 38 'controlfile':'CONTROL.te mp',39 'controlfile':'CONTROL.test', 39 40 'debug':0, 40 41 } … … 43 44 sys.argv = ['dummy.py', '--start_date=20180101'] 44 45 45 self.args = tools.get_commandline_arguments()46 self.args = get_cmdline_args() 46 47 47 self.c = ControlFile(' TestData/CONTROL.temp')48 self.c = ControlFile('../../Testing/Regression/Unit/Testfiles/CONTROL.test') 48 49 49 50 self.c.assign_args_to_control(self.args) … … 57 58 '--step=0/to/11/BY/3', '--area=20./20./0./90.'] 58 59 59 arguments = tools.get_cmdline_arguments()60 arguments = get_cmdline_args() 60 61 61 62 args_exp = {'start_date':'20180101', … … 72 73 'job_template':'job.temp', 73 74 'queue':None, 74 'controlfile':'CONTROL.te mp',75 'controlfile':'CONTROL.test', 75 76 'debug':1, 76 77 } … … 89 90 'area': None, 90 91 'basetime': None, 91 'controlfile': 'CONTROL.te mp',92 'controlfile': 'CONTROL.test', 92 93 'cwc': 0, 93 94 'date_chunk': 3, … … 158 159 159 160 return 161 162 @classmethod 163 def teardown_class(self): 164 165 return
Note: See TracChangeset
for help on using the changeset viewer.