From 3b9d9518ac317bfb9b4b6a375b646be6d99abc5b Mon Sep 17 00:00:00 2001 From: Hoang Sa Nguyen <sa.nguyen@gmx.de> Date: Wed, 2 Dec 2020 21:34:45 +0100 Subject: [PATCH] deletet testfiles --- config/json_parser.py | 12 ----------- config/json_test.py | 50 ------------------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 config/json_parser.py delete mode 100644 config/json_test.py diff --git a/config/json_parser.py b/config/json_parser.py deleted file mode 100644 index fdea1dd..0000000 --- a/config/json_parser.py +++ /dev/null @@ -1,12 +0,0 @@ -import json - -com_port_data = { - "COM_PORT": "name" -} - -with open("tmtcc_config.json", "w") as write: - json.dump(com_port_data, write, indent=4) - -#with open("data_file.json", "r") as read_content: -# print(json.load(read_content)) - diff --git a/config/json_test.py b/config/json_test.py deleted file mode 100644 index 9707a35..0000000 --- a/config/json_test.py +++ /dev/null @@ -1,50 +0,0 @@ -import json -''' -people_string = { - "people": [ - { - "name": "John Smith", - "phone": "615-555-7164", - "emails": ["johnsmith@bogusemail.com", "john.smith@work-place.com"], - "has_license": False - }, - { - "name": "John Doe", - "phone": "111-666-7164", - "emails": ["johndoe@bogusemail.com", "john.doe@work-place.com"], - "has_license": True - } - ] -} - - -data = { - "name": "Satyam kumar", - "place": "patna", - "skills": [ - "Raspberry pi", - "Machine Learning", - "Web Development" - ], - "email": "xyz@gmail.com", - "projects": [ - "Python Data Mining", - "Python Data Science" - ] -} -with open("data_file.json", "w") as write: - json.dump(data, write) - -with open("data_file.json", "r") as read_content: - print(json.load(read_content)) - -with open("test.json", "w") as f: - json.dump(people_string, f, indent=4) - -with open("test.json", "r") as f2: - test_data = json.load(f2) - #print(json.load(f2)) - -print(test_data) -print(type(test_data)) -''' -- GitLab