ghga-transpiler 1.2.0__py3-none-any.whl → 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +0,0 @@
1
- # Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
2
- # for the German Human Genome-Phenome Archive (GHGA)
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.
15
- #
16
-
17
- """Data that are used in unit tests"""
18
-
19
- EXPECTED_CONVERSION = {
20
- "books": [
21
- {
22
- "writer_name": "Albert Camus",
23
- "book_name": "The Plague",
24
- "isbn": "9780679720218",
25
- },
26
- {
27
- "writer_name": "George Orwell",
28
- "book_name": "1984",
29
- "isbn": "9783548234106",
30
- },
31
- ],
32
- "publisher": [
33
- {
34
- "isbn": "9780679720218",
35
- "publisher_names": ["Hamish Hamilton", "Stephen King"],
36
- "attributes": [
37
- {"key": "page", "value": "100"},
38
- {"key": "cover", "value": "paperback"},
39
- ],
40
- },
41
- {"isbn": "9783548234106", "publisher_names": ["Secker and Warburg"]},
42
- ],
43
- }
tests/fixtures/utils.py DELETED
@@ -1,33 +0,0 @@
1
- # Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
2
- # for the German Human Genome-Phenome Archive (GHGA)
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.
15
-
16
- """Utils for Fixture handling"""
17
-
18
- from pathlib import Path
19
-
20
- from openpyxl import Workbook
21
-
22
-
23
- def get_project_root() -> Path:
24
- """Function to get project root dir"""
25
- return Path(__file__).absolute().parent.parent.parent
26
-
27
-
28
- def create_workbook(*args) -> Workbook:
29
- """Function to create workbook with sheets"""
30
- workbook = Workbook()
31
- for arg in args:
32
- workbook.create_sheet(arg)
33
- return workbook