Conditions | 3 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | |||
5 | @staticmethod |
||
6 | def fn_set_extract_behaviour(in_session): |
||
7 | default_value = 'skip-if-output-file-exists' |
||
8 | allowed_values = [ |
||
9 | 'skip-if-output-file-exists', |
||
10 | 'overwrite-if-output-file-exists', |
||
11 | ] |
||
12 | if ('extract-behaviour' not in in_session) \ |
||
13 | or (in_session['extract-behaviour'] not in allowed_values): |
||
14 | value_to_return = default_value |
||
15 | else: |
||
16 | value_to_return = in_session['extract-behaviour'] |
||
17 | return value_to_return |
||
18 |