-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
62 lines (50 loc) · 1.64 KB
/
main.py
File metadata and controls
62 lines (50 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"""
COPYRIGHT © BSH HOME APPLIANCES GROUP 2021
ALLE RECHTE VORBEHALTEN. ALL RIGHTS RESERVED.
The reproduction, transmission or use of this document or its contents is not permitted without express
written authority. Offenders will be liable for damages. All rights, including rights created by patent
grant or registration of a utility model or design, are reserved.
"""
class InterviewSessionHandler:
def __init__(self):
self.cache_raw = None
self.cache_shaped = None
def execute(self):
"""
This method handles the complete interview session.
The workflow is sequenced in the following order:
1. Load cache
2. Shape cache
3. Write cache to file
"""
self.load_cache()
self.shape_cache()
self.write_cache_to_file()
def load_cache(self):
"""
This method loads the external cache.json file into the cache_raw attribute.
"""
raise NotImplementedError
def shape_cache(self):
"""
This method shapes the cache_raw attribute into the cache_shaped attribute.
Shaped structure (abstract)
[
'%description%_%jira%',
'%description%_%jira%'
]
Shaped structure (example)
[
'test_1_done',
'test_2_done'
]
"""
raise NotImplementedError
def write_cache_to_file(self):
"""
This method writes the cache_shaped attribute to an external shaped.txt file.
"""
raise NotImplementedError
if __name__ == '__main__':
applicant = InterviewSessionHandler()
applicant.execute()