diff --git a/_testresults_/coverage.xml b/_testresults_/coverage.xml index 4c4cc18..415574f 100644 --- a/_testresults_/coverage.xml +++ b/_testresults_/coverage.xml @@ -1,10 +1,10 @@ - + - + @@ -28,7 +28,7 @@ - + @@ -114,48 +114,48 @@ - + - + - + - + - + - + - + - - - - - + + + + + - - + + - + - - + + @@ -168,61 +168,62 @@ - + - + - - + + - + - + - - + + - + - + - + - - - - + + + + - + - + - - + + - - + + - + + diff --git a/_testresults_/unittest.json b/_testresults_/unittest.json index 840a0be..b91a42c 100644 --- a/_testresults_/unittest.json +++ b/_testresults_/unittest.json @@ -1,11 +1,11 @@ { "coverage_information": [ { - "branch_coverage": 97.5, + "branch_coverage": 97.61999999999999, "filepath": "/user_data/data/dirk/prj/unittest/media/pylibs/media", "files": [ { - "branch_coverage": 97.5, + "branch_coverage": 97.61999999999999, "filepath": "/user_data/data/dirk/prj/unittest/media/pylibs/media/__init__.py", "fragments": [ { @@ -108,7 +108,7 @@ "name": "media.__init__.py" }, { - "branch_coverage": 97.5, + "branch_coverage": 97.61999999999999, "filepath": "/user_data/data/dirk/prj/unittest/media/pylibs/media/metadata.py", "fragments": [ { @@ -233,225 +233,225 @@ }, { "coverage_state": "covered", - "end": 101, + "end": 102, "start": 100 }, { "coverage_state": "clean", - "end": 102, - "start": 102 - }, - { - "coverage_state": "covered", - "end": 104, + "end": 103, "start": 103 }, { - "coverage_state": "clean", + "coverage_state": "covered", "end": 105, - "start": 105 + "start": 104 }, { - "coverage_state": "covered", - "end": 107, + "coverage_state": "clean", + "end": 106, "start": 106 }, { - "coverage_state": "clean", + "coverage_state": "covered", "end": 108, - "start": 108 + "start": 107 }, { - "coverage_state": "covered", - "end": 111, + "coverage_state": "clean", + "end": 109, "start": 109 }, + { + "coverage_state": "covered", + "end": 112, + "start": 110 + }, { "coverage_state": "clean", - "end": 113, - "start": 112 + "end": 114, + "start": 113 }, { "coverage_state": "covered", - "end": 116, - "start": 114 - }, - { - "coverage_state": "clean", "end": 117, - "start": 117 + "start": 115 }, { - "coverage_state": "covered", - "end": 119, + "coverage_state": "clean", + "end": 118, "start": 118 }, { - "coverage_state": "clean", + "coverage_state": "covered", "end": 120, - "start": 120 + "start": 119 }, { - "coverage_state": "covered", - "end": 125, + "coverage_state": "clean", + "end": 121, "start": 121 }, + { + "coverage_state": "covered", + "end": 126, + "start": 122 + }, { "coverage_state": "uncovered", - "end": 128, - "start": 126 + "end": 129, + "start": 127 }, { "coverage_state": "clean", - "end": 129, - "start": 129 - }, - { - "coverage_state": "covered", - "end": 135, + "end": 130, "start": 130 }, { - "coverage_state": "clean", + "coverage_state": "covered", "end": 136, - "start": 136 + "start": 131 }, { - "coverage_state": "covered", - "end": 143, + "coverage_state": "clean", + "end": 137, "start": 137 }, + { + "coverage_state": "covered", + "end": 144, + "start": 138 + }, { "coverage_state": "clean", - "end": 145, - "start": 144 + "end": 146, + "start": 145 }, { "coverage_state": "covered", - "end": 152, - "start": 146 - }, - { - "coverage_state": "clean", "end": 153, - "start": 153 + "start": 147 }, { - "coverage_state": "covered", + "coverage_state": "clean", "end": 154, "start": 154 }, { - "coverage_state": "clean", + "coverage_state": "covered", "end": 155, "start": 155 }, { - "coverage_state": "covered", - "end": 175, + "coverage_state": "clean", + "end": 156, "start": 156 }, - { - "coverage_state": "clean", - "end": 178, - "start": 176 - }, { "coverage_state": "covered", - "end": 181, - "start": 179 + "end": 176, + "start": 157 }, { "coverage_state": "clean", - "end": 183, - "start": 182 + "end": 179, + "start": 177 }, { "coverage_state": "covered", - "end": 193, - "start": 184 + "end": 182, + "start": 180 }, { "coverage_state": "clean", - "end": 195, - "start": 194 + "end": 184, + "start": 183 }, { "coverage_state": "covered", - "end": 197, - "start": 196 + "end": 194, + "start": 185 }, { "coverage_state": "clean", - "end": 209, - "start": 198 + "end": 196, + "start": 195 }, { "coverage_state": "covered", - "end": 211, - "start": 210 + "end": 198, + "start": 197 }, { "coverage_state": "clean", - "end": 227, - "start": 212 + "end": 210, + "start": 199 }, { "coverage_state": "covered", - "end": 236, - "start": 228 + "end": 212, + "start": 211 }, { "coverage_state": "clean", - "end": 238, - "start": 237 + "end": 228, + "start": 213 }, { "coverage_state": "covered", - "end": 241, - "start": 239 + "end": 237, + "start": 229 }, { "coverage_state": "clean", - "end": 243, - "start": 242 + "end": 239, + "start": 238 }, { "coverage_state": "covered", - "end": 254, - "start": 244 + "end": 242, + "start": 240 + }, + { + "coverage_state": "clean", + "end": 244, + "start": 243 + }, + { + "coverage_state": "covered", + "end": 255, + "start": 245 }, { "coverage_state": "partially-covered", - "end": 255, - "start": 255 - }, - { - "coverage_state": "covered", - "end": 258, + "end": 256, "start": 256 }, + { + "coverage_state": "covered", + "end": 259, + "start": 257 + }, { "coverage_state": "clean", - "end": 260, - "start": 259 + "end": 261, + "start": 260 }, { "coverage_state": "covered", - "end": 264, - "start": 261 + "end": 265, + "start": 262 }, { "coverage_state": "clean", "end": null, - "start": 265 + "start": 266 } ], - "line_coverage": 98.44000000000001, + "line_coverage": 98.45, "name": "media.metadata.py" } ], - "line_coverage": 98.56, + "line_coverage": 98.57000000000001, "name": "media" } ], @@ -503,7 +503,7 @@ "Name": "media", "State": "Released", "Supported Interpreters": "python3", - "Version": "9e6f9c0bef4dee208308971155bc254c" + "Version": "4111f284029e0f53b0411b6897f59d2b" }, "testrun_list": [ { @@ -527,8 +527,8 @@ "testcases": { "_XzMFcHYZEem_kd-7nxt1sg": { "args": null, - "asctime": "2020-01-30 23:35:34,229", - "created": 1580423734.2293775, + "asctime": "2020-01-31 08:10:17,049", + "created": 1580454617.0494206, "exc_info": null, "exc_text": null, "filename": "__init__.py", @@ -539,13 +539,13 @@ "message": "_XzMFcHYZEem_kd-7nxt1sg", "module": "__init__", "moduleLogger": [], - "msecs": 229.37750816345215, + "msecs": 49.42059516906738, "msg": "_XzMFcHYZEem_kd-7nxt1sg", "name": "__tLogger__", "pathname": "/user_data/data/dirk/prj/unittest/media/unittest/src/tests/__init__.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 57.25598335266113, + "relativeCreated": 57.75260925292969, "stack_info": null, "testcaseLogger": [ { @@ -553,8 +553,8 @@ "None", "" ], - "asctime": "2020-01-30 23:35:34,229", - "created": 1580423734.2299068, + "asctime": "2020-01-31 08:10:17,049", + "created": 1580454617.0499136, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -569,8 +569,8 @@ "args": [ "/user_data/data/dirk/prj/unittest/media/unittest/input_data/unknown.txt" ], - "asctime": "2020-01-30 23:35:34,229", - "created": 1580423734.2295656, + "asctime": "2020-01-31 08:10:17,049", + "created": 1580454617.0495975, "exc_info": null, "exc_text": null, "filename": "__init__.py", @@ -580,15 +580,15 @@ "lineno": 50, "message": "Filetype not known: /user_data/data/dirk/prj/unittest/media/unittest/input_data/unknown.txt", "module": "__init__", - "msecs": 229.56562042236328, + "msecs": 49.59750175476074, "msg": "Filetype not known: %s", "name": "MEDIA", "pathname": "src/media/__init__.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 57.444095611572266, + "relativeCreated": 57.92951583862305, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -597,8 +597,8 @@ "None", "" ], - "asctime": "2020-01-30 23:35:34,229", - "created": 1580423734.2298157, + "asctime": "2020-01-31 08:10:17,049", + "created": 1580454617.0498288, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -608,15 +608,15 @@ "lineno": 22, "message": "Result (Media data for unknown.txt): None ()", "module": "test", - "msecs": 229.81572151184082, + "msecs": 49.82876777648926, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 57.694196701049805, + "relativeCreated": 58.16078186035156, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -625,8 +625,8 @@ "None", "" ], - "asctime": "2020-01-30 23:35:34,229", - "created": 1580423734.2298617, + "asctime": "2020-01-31 08:10:17,049", + "created": 1580454617.0498722, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -636,37 +636,37 @@ "lineno": 26, "message": "Expectation (Media data for unknown.txt): result = None ()", "module": "test", - "msecs": 229.86173629760742, + "msecs": 49.87215995788574, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 57.740211486816406, + "relativeCreated": 58.20417404174805, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 229.90679740905762, + "msecs": 49.913644790649414, "msg": "Media data for unknown.txt is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 57.7852725982666, + "relativeCreated": 58.24565887451172, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 4.506111145019531e-05 + "time_consumption": 4.1484832763671875e-05 }, { "args": [ "{'duration': 236.094694, 'bitrate': 290743, 'artist': 'Kaleo', 'title': 'No Good', 'album': 'A/B', 'track': 1, 'genre': 'Rock', 'year': 2016, 'size': 8580366, 'time': 1451606398, 'tm_is_subst': True}", "" ], - "asctime": "2020-01-30 23:35:34,290", - "created": 1580423734.2906947, + "asctime": "2020-01-31 08:10:17,124", + "created": 1580454617.124815, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -683,8 +683,8 @@ "{ 'duration': 236.094694, 'bitrate': 290743, 'artist': 'Kaleo', 'title': 'No Good', 'album': 'A/B', 'track': 1, 'genre': 'Rock', 'year': 2016, 'size': 8580366, 'time': 1451606398, 'tm_is_subst': True }", "" ], - "asctime": "2020-01-30 23:35:34,290", - "created": 1580423734.2902982, + "asctime": "2020-01-31 08:10:17,124", + "created": 1580454617.1244764, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -694,15 +694,15 @@ "lineno": 22, "message": "Result (Media data for audio.mp3): { 'duration': 236.094694, 'bitrate': 290743, 'artist': 'Kaleo', 'title': 'No Good', 'album': 'A/B', 'track': 1, 'genre': 'Rock', 'year': 2016, 'size': 8580366, 'time': 1451606398, 'tm_is_subst': True } ()", "module": "test", - "msecs": 290.2982234954834, + "msecs": 124.47643280029297, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 118.17669868469238, + "relativeCreated": 132.80844688415527, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -711,8 +711,8 @@ "{ 'duration': 236.094694, 'bitrate': 290743, 'artist': 'Kaleo', 'title': 'No Good', 'album': 'A/B', 'track': 1, 'genre': 'Rock', 'year': 2016, 'time': 1451606398, 'tm_is_subst': True, 'size': 8580366 }", "" ], - "asctime": "2020-01-30 23:35:34,290", - "created": 1580423734.2905095, + "asctime": "2020-01-31 08:10:17,124", + "created": 1580454617.124694, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -722,37 +722,37 @@ "lineno": 26, "message": "Expectation (Media data for audio.mp3): result = { 'duration': 236.094694, 'bitrate': 290743, 'artist': 'Kaleo', 'title': 'No Good', 'album': 'A/B', 'track': 1, 'genre': 'Rock', 'year': 2016, 'time': 1451606398, 'tm_is_subst': True, 'size': 8580366 } ()", "module": "test", - "msecs": 290.5094623565674, + "msecs": 124.6941089630127, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 118.38793754577637, + "relativeCreated": 133.026123046875, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 290.6947135925293, + "msecs": 124.81498718261719, "msg": "Media data for audio.mp3 is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 118.57318878173828, + "relativeCreated": 133.1470012664795, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00018525123596191406 + "time_consumption": 0.00012087821960449219 }, { "args": [ "{'duration': 281.991837, 'bitrate': 228298, 'title': 'Video Games (Album Version Remastered)', 'artist': 'Lana Del Rey', 'album': 'Born To Die', 'genre': 'Pop', 'track': 4, 'year': 2012, 'size': 8047290, 'time': 1325375995, 'tm_is_subst': True}", "" ], - "asctime": "2020-01-30 23:35:34,354", - "created": 1580423734.354267, + "asctime": "2020-01-31 08:10:17,195", + "created": 1580454617.1954708, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -769,26 +769,26 @@ "bitrate", "bitrate" ], - "asctime": "2020-01-30 23:35:34,353", - "created": 1580423734.3536484, + "asctime": "2020-01-31 08:10:17,194", + "created": 1580454617.1948514, "exc_info": null, "exc_text": null, "filename": "metadata.py", "funcName": "__get_xxprobe_data__", "levelname": "WARNING", "levelno": 30, - "lineno": 142, + "lineno": 143, "message": "Can't convert 'N/A' (bitrate) for bitrate", "module": "metadata", - "msecs": 353.64842414855957, + "msecs": 194.85139846801758, "msg": "Can't convert %s (%s) for %s", "name": "MEDIA", "pathname": "src/media/metadata.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 181.52689933776855, + "relativeCreated": 203.18341255187988, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -797,8 +797,8 @@ "{ 'duration': 281.991837, 'bitrate': 228298, 'title': 'Video Games (Album Version Remastered)', 'artist': 'Lana Del Rey', 'album': 'Born To Die', 'genre': 'Pop', 'track': 4, 'year': 2012, 'size': 8047290, 'time': 1325375995, 'tm_is_subst': True }", "" ], - "asctime": "2020-01-30 23:35:34,354", - "created": 1580423734.3540657, + "asctime": "2020-01-31 08:10:17,195", + "created": 1580454617.1952865, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -808,15 +808,15 @@ "lineno": 22, "message": "Result (Media data for audio_fail_conv.mp3): { 'duration': 281.991837, 'bitrate': 228298, 'title': 'Video Games (Album Version Remastered)', 'artist': 'Lana Del Rey', 'album': 'Born To Die', 'genre': 'Pop', 'track': 4, 'year': 2012, 'size': 8047290, 'time': 1325375995, 'tm_is_subst': True } ()", "module": "test", - "msecs": 354.0656566619873, + "msecs": 195.28651237487793, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 181.9441318511963, + "relativeCreated": 203.61852645874023, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -825,8 +825,8 @@ "{ 'duration': 281.991837, 'bitrate': 228298, 'artist': 'Lana Del Rey', 'title': 'Video Games (Album Version Remastered)', 'album': 'Born To Die', 'track': 4, 'genre': 'Pop', 'year': 2012, 'time': 1325375995, 'tm_is_subst': True, 'size': 8047290 }", "" ], - "asctime": "2020-01-30 23:35:34,354", - "created": 1580423734.3541644, + "asctime": "2020-01-31 08:10:17,195", + "created": 1580454617.1953719, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -836,37 +836,123 @@ "lineno": 26, "message": "Expectation (Media data for audio_fail_conv.mp3): result = { 'duration': 281.991837, 'bitrate': 228298, 'artist': 'Lana Del Rey', 'title': 'Video Games (Album Version Remastered)', 'album': 'Born To Die', 'track': 4, 'genre': 'Pop', 'year': 2012, 'time': 1325375995, 'tm_is_subst': True, 'size': 8047290 } ()", "module": "test", - "msecs": 354.16436195373535, + "msecs": 195.3718662261963, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 182.04283714294434, + "relativeCreated": 203.7038803100586, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 354.266881942749, + "msecs": 195.47080993652344, "msg": "Media data for audio_fail_conv.mp3 is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 182.145357131958, + "relativeCreated": 203.80282402038574, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00010251998901367188 + "time_consumption": 9.894371032714844e-05 + }, + { + "args": [ + "{'duration': 120.476735, 'bitrate': 240202, 'title': 'Was bringt der Dezember', 'artist': 'Rolf und seine Freunde', 'album': 'Wir warten auf Weihnachten', 'year': 0, 'track': 9, 'genre': 'Other', 'size': 3617354}", + "" + ], + "asctime": "2020-01-31 08:10:17,248", + "created": 1580454617.248586, + "exc_info": null, + "exc_text": null, + "filename": "test.py", + "funcName": "equivalency_chk", + "levelname": "INFO", + "levelno": 20, + "lineno": 142, + "message": "Media data for audio_year_0.mp3 is correct (Content {'duration': 120.476735, 'bitrate': 240202, 'title': 'Was bringt der Dezember', 'artist': 'Rolf und seine Freunde', 'album': 'Wir warten auf Weihnachten', 'year': 0, 'track': 9, 'genre': 'Other', 'size': 3617354} and Type is ).", + "module": "test", + "moduleLogger": [ + { + "args": [ + "Media data for audio_year_0.mp3", + "{ 'duration': 120.476735, 'bitrate': 240202, 'title': 'Was bringt der Dezember', 'artist': 'Rolf und seine Freunde', 'album': 'Wir warten auf Weihnachten', 'year': 0, 'track': 9, 'genre': 'Other', 'size': 3617354 }", + "" + ], + "asctime": "2020-01-31 08:10:17,248", + "created": 1580454617.2483046, + "exc_info": null, + "exc_text": null, + "filename": "test.py", + "funcName": "__report_result__", + "levelname": "DEBUG", + "levelno": 10, + "lineno": 22, + "message": "Result (Media data for audio_year_0.mp3): { 'duration': 120.476735, 'bitrate': 240202, 'title': 'Was bringt der Dezember', 'artist': 'Rolf und seine Freunde', 'album': 'Wir warten auf Weihnachten', 'year': 0, 'track': 9, 'genre': 'Other', 'size': 3617354 } ()", + "module": "test", + "msecs": 248.3046054840088, + "msg": "Result (%s): %s (%s)", + "name": "__unittest__", + "pathname": "src/unittest/test.py", + "process": 21438, + "processName": "MainProcess", + "relativeCreated": 256.6366195678711, + "stack_info": null, + "thread": 140584323143488, + "threadName": "MainThread" + }, + { + "args": [ + "Media data for audio_year_0.mp3", + "{ 'duration': 120.476735, 'bitrate': 240202, 'artist': 'Rolf und seine Freunde', 'title': 'Was bringt der Dezember', 'album': 'Wir warten auf Weihnachten', 'track': 9, 'genre': 'Other', 'year': 0, 'size': 3617354 }", + "" + ], + "asctime": "2020-01-31 08:10:17,248", + "created": 1580454617.24848, + "exc_info": null, + "exc_text": null, + "filename": "test.py", + "funcName": "__report_expectation_equivalency__", + "levelname": "DEBUG", + "levelno": 10, + "lineno": 26, + "message": "Expectation (Media data for audio_year_0.mp3): result = { 'duration': 120.476735, 'bitrate': 240202, 'artist': 'Rolf und seine Freunde', 'title': 'Was bringt der Dezember', 'album': 'Wir warten auf Weihnachten', 'track': 9, 'genre': 'Other', 'year': 0, 'size': 3617354 } ()", + "module": "test", + "msecs": 248.48008155822754, + "msg": "Expectation (%s): result = %s (%s)", + "name": "__unittest__", + "pathname": "src/unittest/test.py", + "process": 21438, + "processName": "MainProcess", + "relativeCreated": 256.81209564208984, + "stack_info": null, + "thread": 140584323143488, + "threadName": "MainThread" + } + ], + "msecs": 248.58593940734863, + "msg": "Media data for audio_year_0.mp3 is correct (Content %s and Type is %s).", + "name": "__tLogger__", + "pathname": "src/unittest/test.py", + "process": 21438, + "processName": "MainProcess", + "relativeCreated": 256.91795349121094, + "stack_info": null, + "thread": 140584323143488, + "threadName": "MainThread", + "time_consumption": 0.00010585784912109375 }, { "args": [ "{'time': 1518783213, 'exposure_program': 'Program Normal', 'exposure_time': 0.000535, 'flash': 'Auto Off', 'aperture': 2.2, 'focal_length': 4.5, 'gps': {'lon': 12.140646934444444, 'lat': 53.68635940527778}, 'height': 2240, 'iso': 50, 'orientation': 0, 'width': 3968, 'size': 4342955, 'camera': 'HUAWEI: EVA-L09'}", "" ], - "asctime": "2020-01-30 23:35:34,371", - "created": 1580423734.371667, + "asctime": "2020-01-31 08:10:17,266", + "created": 1580454617.266195, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -883,8 +969,8 @@ "{ 'time': 1518783213, 'exposure_program': 'Program Normal', 'exposure_time': 0.000535, 'flash': 'Auto Off', 'aperture': 2.2, 'focal_length': 4.5, 'gps': { 'lon': 12.140646934444444, 'lat': 53.68635940527778 }, 'height': 2240, 'iso': 50, 'orientation': 0, 'width': 3968, 'size': 4342955, 'camera': 'HUAWEI: EVA-L09' }", "" ], - "asctime": "2020-01-30 23:35:34,371", - "created": 1580423734.3714578, + "asctime": "2020-01-31 08:10:17,265", + "created": 1580454617.2659605, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -894,15 +980,15 @@ "lineno": 22, "message": "Result (Media data for image_exif_gps.jpg): { 'time': 1518783213, 'exposure_program': 'Program Normal', 'exposure_time': 0.000535, 'flash': 'Auto Off', 'aperture': 2.2, 'focal_length': 4.5, 'gps': { 'lon': 12.140646934444444, 'lat': 53.68635940527778 }, 'height': 2240, 'iso': 50, 'orientation': 0, 'width': 3968, 'size': 4342955, 'camera': 'HUAWEI: EVA-L09' } ()", "module": "test", - "msecs": 371.4578151702881, + "msecs": 265.9604549407959, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 199.33629035949707, + "relativeCreated": 274.2924690246582, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -911,8 +997,8 @@ "{ 'time': 1518783213, 'exposure_program': 'Program Normal', 'exposure_time': 0.000535, 'flash': 'Auto Off', 'aperture': 2.2, 'focal_length': 4.5, 'gps': { 'lon': 12.140646934444444, 'lat': 53.68635940527778 }, 'height': 2240, 'iso': 50, 'orientation': 0, 'width': 3968, 'camera': 'HUAWEI: EVA-L09', 'size': 4342955 }", "" ], - "asctime": "2020-01-30 23:35:34,371", - "created": 1580423734.3715613, + "asctime": "2020-01-31 08:10:17,266", + "created": 1580454617.2660656, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -922,37 +1008,37 @@ "lineno": 26, "message": "Expectation (Media data for image_exif_gps.jpg): result = { 'time': 1518783213, 'exposure_program': 'Program Normal', 'exposure_time': 0.000535, 'flash': 'Auto Off', 'aperture': 2.2, 'focal_length': 4.5, 'gps': { 'lon': 12.140646934444444, 'lat': 53.68635940527778 }, 'height': 2240, 'iso': 50, 'orientation': 0, 'width': 3968, 'camera': 'HUAWEI: EVA-L09', 'size': 4342955 } ()", "module": "test", - "msecs": 371.56128883361816, + "msecs": 266.0655975341797, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 199.43976402282715, + "relativeCreated": 274.397611618042, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 371.66690826416016, + "msecs": 266.19505882263184, "msg": "Media data for image_exif_gps.jpg is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 199.54538345336914, + "relativeCreated": 274.52707290649414, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00010561943054199219 + "time_consumption": 0.00012946128845214844 }, { "args": [ "{'time': 1515143529, 'exposure_program': 'Program Normal', 'exposure_time': 0.03, 'flash': 'Fired', 'aperture': 2.2, 'focal_length': 4.5, 'height': 3968, 'iso': 160, 'orientation': 0, 'width': 2976, 'size': 2837285, 'camera': 'HUAWEI: EVA-L09'}", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3753371, + "asctime": "2020-01-31 08:10:17,269", + "created": 1580454617.26988, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -969,8 +1055,8 @@ "{ 'time': 1515143529, 'exposure_program': 'Program Normal', 'exposure_time': 0.03, 'flash': 'Fired', 'aperture': 2.2, 'focal_length': 4.5, 'height': 3968, 'iso': 160, 'orientation': 0, 'width': 2976, 'size': 2837285, 'camera': 'HUAWEI: EVA-L09' }", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.375182, + "asctime": "2020-01-31 08:10:17,269", + "created": 1580454617.2697332, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -980,15 +1066,15 @@ "lineno": 22, "message": "Result (Media data for image_exif_no_gps.jpg): { 'time': 1515143529, 'exposure_program': 'Program Normal', 'exposure_time': 0.03, 'flash': 'Fired', 'aperture': 2.2, 'focal_length': 4.5, 'height': 3968, 'iso': 160, 'orientation': 0, 'width': 2976, 'size': 2837285, 'camera': 'HUAWEI: EVA-L09' } ()", "module": "test", - "msecs": 375.1819133758545, + "msecs": 269.733190536499, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.06038856506348, + "relativeCreated": 278.0652046203613, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -997,8 +1083,8 @@ "{ 'time': 1515143529, 'exposure_program': 'Program Normal', 'exposure_time': 0.03, 'flash': 'Fired', 'aperture': 2.2, 'focal_length': 4.5, 'height': 3968, 'iso': 160, 'orientation': 0, 'width': 2976, 'camera': 'HUAWEI: EVA-L09', 'size': 2837285 }", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3752575, + "asctime": "2020-01-31 08:10:17,269", + "created": 1580454617.269806, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1008,37 +1094,37 @@ "lineno": 26, "message": "Expectation (Media data for image_exif_no_gps.jpg): result = { 'time': 1515143529, 'exposure_program': 'Program Normal', 'exposure_time': 0.03, 'flash': 'Fired', 'aperture': 2.2, 'focal_length': 4.5, 'height': 3968, 'iso': 160, 'orientation': 0, 'width': 2976, 'camera': 'HUAWEI: EVA-L09', 'size': 2837285 } ()", "module": "test", - "msecs": 375.2574920654297, + "msecs": 269.805908203125, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.13596725463867, + "relativeCreated": 278.1379222869873, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 375.3371238708496, + "msecs": 269.8800563812256, "msg": "Media data for image_exif_no_gps.jpg is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.2155990600586, + "relativeCreated": 278.2120704650879, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 7.963180541992188e-05 + "time_consumption": 7.414817810058594e-05 }, { "args": [ "{'size': 1139092, 'time': 1449870515, 'tm_is_subst': True}", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3757436, + "asctime": "2020-01-31 08:10:17,270", + "created": 1580454617.2703028, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1053,26 +1139,26 @@ "args": [ "/user_data/data/dirk/prj/unittest/media/unittest/input_data/image_non_exif.jpg" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3755352, + "asctime": "2020-01-31 08:10:17,270", + "created": 1580454617.2700617, "exc_info": null, "exc_text": null, "filename": "metadata.py", "funcName": "__get_exif_data__", "levelname": "DEBUG", "levelno": 10, - "lineno": 152, + "lineno": 153, "message": "/user_data/data/dirk/prj/unittest/media/unittest/input_data/image_non_exif.jpg does not have any exif information", "module": "metadata", - "msecs": 375.535249710083, + "msecs": 270.061731338501, "msg": "%s does not have any exif information", "name": "MEDIA", "pathname": "src/media/metadata.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.413724899292, + "relativeCreated": 278.3937454223633, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1081,8 +1167,8 @@ "{ 'size': 1139092, 'time': 1449870515, 'tm_is_subst': True }", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3756378, + "asctime": "2020-01-31 08:10:17,270", + "created": 1580454617.2701979, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1092,15 +1178,15 @@ "lineno": 22, "message": "Result (Media data for image_non_exif.jpg): { 'size': 1139092, 'time': 1449870515, 'tm_is_subst': True } ()", "module": "test", - "msecs": 375.6377696990967, + "msecs": 270.19786834716797, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.51624488830566, + "relativeCreated": 278.5298824310303, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1109,8 +1195,8 @@ "{ 'time': 1449870515, 'tm_is_subst': True, 'size': 1139092 }", "" ], - "asctime": "2020-01-30 23:35:34,375", - "created": 1580423734.3756888, + "asctime": "2020-01-31 08:10:17,270", + "created": 1580454617.2702498, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1120,37 +1206,37 @@ "lineno": 26, "message": "Expectation (Media data for image_non_exif.jpg): result = { 'time': 1449870515, 'tm_is_subst': True, 'size': 1139092 } ()", "module": "test", - "msecs": 375.6887912750244, + "msecs": 270.2498435974121, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.5672664642334, + "relativeCreated": 278.5818576812744, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 375.7436275482178, + "msecs": 270.30277252197266, "msg": "Media data for image_non_exif.jpg is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 203.62210273742676, + "relativeCreated": 278.63478660583496, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 5.4836273193359375e-05 + "time_consumption": 5.2928924560546875e-05 }, { "args": [ "{'time': 1226149915, 'exposure_program': 'Program Normal', 'exposure_time': 0.008, 'flash': 'Fill Fired', 'aperture': 7.1, 'focal_length': 170.0, 'height': 2592, 'iso': 400, 'orientation': 1, 'width': 3888, 'size': 1301272, 'camera': 'Canon: Canon EOS 40D'}", "" ], - "asctime": "2020-01-30 23:35:34,379", - "created": 1580423734.3798156, + "asctime": "2020-01-31 08:10:17,274", + "created": 1580454617.2744613, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1165,26 +1251,26 @@ "args": [ "{0: b'\\x02\\x02\\x00\\x00'}" ], - "asctime": "2020-01-30 23:35:34,379", - "created": 1580423734.379549, + "asctime": "2020-01-31 08:10:17,274", + "created": 1580454617.2741964, "exc_info": null, "exc_text": null, "filename": "metadata.py", "funcName": "__gps_conv__", "levelname": "WARNING", "levelno": 30, - "lineno": 258, + "lineno": 259, "message": "GPS data extraction failed for {0: b'\\x02\\x02\\x00\\x00'}", "module": "metadata", - "msecs": 379.5490264892578, + "msecs": 274.1963863372803, "msg": "GPS data extraction failed for %s", "name": "MEDIA", "pathname": "src/media/metadata.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 207.4275016784668, + "relativeCreated": 282.5284004211426, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1193,8 +1279,8 @@ "{ 'time': 1226149915, 'exposure_program': 'Program Normal', 'exposure_time': 0.008, 'flash': 'Fill Fired', 'aperture': 7.1, 'focal_length': 170.0, 'height': 2592, 'iso': 400, 'orientation': 1, 'width': 3888, 'size': 1301272, 'camera': 'Canon: Canon EOS 40D' }", "" ], - "asctime": "2020-01-30 23:35:34,379", - "created": 1580423734.3796718, + "asctime": "2020-01-31 08:10:17,274", + "created": 1580454617.2743208, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1204,15 +1290,15 @@ "lineno": 22, "message": "Result (Media data for image_extraction_failed.jpg): { 'time': 1226149915, 'exposure_program': 'Program Normal', 'exposure_time': 0.008, 'flash': 'Fill Fired', 'aperture': 7.1, 'focal_length': 170.0, 'height': 2592, 'iso': 400, 'orientation': 1, 'width': 3888, 'size': 1301272, 'camera': 'Canon: Canon EOS 40D' } ()", "module": "test", - "msecs": 379.6718120574951, + "msecs": 274.3208408355713, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 207.5502872467041, + "relativeCreated": 282.6528549194336, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1221,8 +1307,8 @@ "{ 'time': 1226149915, 'exposure_program': 'Program Normal', 'exposure_time': 0.008, 'flash': 'Fill Fired', 'aperture': 7.1, 'focal_length': 170.0, 'height': 2592, 'iso': 400, 'orientation': 1, 'width': 3888, 'camera': 'Canon: Canon EOS 40D', 'size': 1301272 }", "" ], - "asctime": "2020-01-30 23:35:34,379", - "created": 1580423734.3797376, + "asctime": "2020-01-31 08:10:17,274", + "created": 1580454617.2743845, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1232,37 +1318,37 @@ "lineno": 26, "message": "Expectation (Media data for image_extraction_failed.jpg): result = { 'time': 1226149915, 'exposure_program': 'Program Normal', 'exposure_time': 0.008, 'flash': 'Fill Fired', 'aperture': 7.1, 'focal_length': 170.0, 'height': 2592, 'iso': 400, 'orientation': 1, 'width': 3888, 'camera': 'Canon: Canon EOS 40D', 'size': 1301272 } ()", "module": "test", - "msecs": 379.73761558532715, + "msecs": 274.3844985961914, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 207.61609077453613, + "relativeCreated": 282.7165126800537, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 379.81557846069336, + "msecs": 274.4612693786621, "msg": "Media data for image_extraction_failed.jpg is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 207.69405364990234, + "relativeCreated": 282.7932834625244, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 7.796287536621094e-05 + "time_consumption": 7.677078247070312e-05 }, { "args": [ "{'width': 800, 'height': 480, 'ratio': 1.6666666666666667, 'duration': 3.964, 'bitrate': 2341765, 'time': 1414948303, 'size': 1160345}", "" ], - "asctime": "2020-01-30 23:35:34,435", - "created": 1580423734.4350774, + "asctime": "2020-01-31 08:10:17,331", + "created": 1580454617.3313096, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1279,8 +1365,8 @@ "{ 'width': 800, 'height': 480, 'ratio': 1.6666666666666667, 'duration': 3.964, 'bitrate': 2341765, 'time': 1414948303, 'size': 1160345 }", "" ], - "asctime": "2020-01-30 23:35:34,434", - "created": 1580423734.434815, + "asctime": "2020-01-31 08:10:17,330", + "created": 1580454617.3309891, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1290,15 +1376,15 @@ "lineno": 22, "message": "Result (Media data for video.3gp): { 'width': 800, 'height': 480, 'ratio': 1.6666666666666667, 'duration': 3.964, 'bitrate': 2341765, 'time': 1414948303, 'size': 1160345 } ()", "module": "test", - "msecs": 434.8149299621582, + "msecs": 330.98912239074707, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 262.6934051513672, + "relativeCreated": 339.3211364746094, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1307,8 +1393,8 @@ "{ 'width': 800, 'height': 480, 'ratio': 1.6666666666666667, 'duration': 3.964, 'bitrate': 2341765, 'time': 1414948303, 'size': 1160345 }", "" ], - "asctime": "2020-01-30 23:35:34,434", - "created": 1580423734.434988, + "asctime": "2020-01-31 08:10:17,331", + "created": 1580454617.3312073, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1318,37 +1404,37 @@ "lineno": 26, "message": "Expectation (Media data for video.3gp): result = { 'width': 800, 'height': 480, 'ratio': 1.6666666666666667, 'duration': 3.964, 'bitrate': 2341765, 'time': 1414948303, 'size': 1160345 } ()", "module": "test", - "msecs": 434.98802185058594, + "msecs": 331.207275390625, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 262.8664970397949, + "relativeCreated": 339.5392894744873, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 435.077428817749, + "msecs": 331.30955696105957, "msg": "Media data for video.3gp is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 262.955904006958, + "relativeCreated": 339.6415710449219, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 8.940696716308594e-05 + "time_consumption": 0.00010228157043457031 }, { "args": [ "{'width': 1920, 'height': 1080, 'ratio': 1.7777777777777777, 'duration': 12.453, 'bitrate': 17883888, 'time': 1503125482, 'size': 27838508}", "" ], - "asctime": "2020-01-30 23:35:34,579", - "created": 1580423734.5798893, + "asctime": "2020-01-31 08:10:17,523", + "created": 1580454617.5236886, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1365,8 +1451,8 @@ "{ 'width': 1920, 'height': 1080, 'ratio': 1.7777777777777777, 'duration': 12.453, 'bitrate': 17883888, 'time': 1503125482, 'size': 27838508 }", "" ], - "asctime": "2020-01-30 23:35:34,579", - "created": 1580423734.5796008, + "asctime": "2020-01-31 08:10:17,523", + "created": 1580454617.5233953, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1376,15 +1462,15 @@ "lineno": 22, "message": "Result (Media data for video.mp4): { 'width': 1920, 'height': 1080, 'ratio': 1.7777777777777777, 'duration': 12.453, 'bitrate': 17883888, 'time': 1503125482, 'size': 27838508 } ()", "module": "test", - "msecs": 579.6008110046387, + "msecs": 523.395299911499, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 407.47928619384766, + "relativeCreated": 531.7273139953613, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1393,8 +1479,8 @@ "{ 'width': 1920, 'height': 1080, 'ratio': 1.7777777777777777, 'duration': 12.453, 'bitrate': 17883888, 'time': 1503125482, 'size': 27838508 }", "" ], - "asctime": "2020-01-30 23:35:34,579", - "created": 1580423734.5797846, + "asctime": "2020-01-31 08:10:17,523", + "created": 1580454617.5235822, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1404,37 +1490,37 @@ "lineno": 26, "message": "Expectation (Media data for video.mp4): result = { 'width': 1920, 'height': 1080, 'ratio': 1.7777777777777777, 'duration': 12.453, 'bitrate': 17883888, 'time': 1503125482, 'size': 27838508 } ()", "module": "test", - "msecs": 579.784631729126, + "msecs": 523.5822200775146, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 407.66310691833496, + "relativeCreated": 531.914234161377, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 579.8892974853516, + "msecs": 523.688554763794, "msg": "Media data for video.mp4 is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 407.76777267456055, + "relativeCreated": 532.0205688476562, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00010466575622558594 + "time_consumption": 0.00010633468627929688 }, { "args": [ "{'width': 320, 'height': 240, 'ratio': 0.0, 'duration': 26.531264, 'bitrate': 840554, 'time': 1086778620, 'size': 2787622}", "" ], - "asctime": "2020-01-30 23:35:34,634", - "created": 1580423734.6340902, + "asctime": "2020-01-31 08:10:17,577", + "created": 1580454617.5771666, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1451,26 +1537,26 @@ "duration", "duration" ], - "asctime": "2020-01-30 23:35:34,632", - "created": 1580423734.6324155, + "asctime": "2020-01-31 08:10:17,576", + "created": 1580454617.5764694, "exc_info": null, "exc_text": null, "filename": "metadata.py", "funcName": "__get_xxprobe_data__", "levelname": "WARNING", "levelno": 30, - "lineno": 142, + "lineno": 143, "message": "Can't convert 'N/A' (duration) for duration", "module": "metadata", - "msecs": 632.4155330657959, + "msecs": 576.4694213867188, "msg": "Can't convert %s (%s) for %s", "name": "MEDIA", "pathname": "src/media/metadata.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 460.2940082550049, + "relativeCreated": 584.801435470581, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1479,8 +1565,8 @@ "{ 'width': 320, 'height': 240, 'ratio': 0.0, 'duration': 26.531264, 'bitrate': 840554, 'time': 1086778620, 'size': 2787622 }", "" ], - "asctime": "2020-01-30 23:35:34,633", - "created": 1580423734.6334946, + "asctime": "2020-01-31 08:10:17,576", + "created": 1580454617.5769684, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1490,15 +1576,15 @@ "lineno": 22, "message": "Result (Media data for video_special_time.avi): { 'width': 320, 'height': 240, 'ratio': 0.0, 'duration': 26.531264, 'bitrate': 840554, 'time': 1086778620, 'size': 2787622 } ()", "module": "test", - "msecs": 633.4946155548096, + "msecs": 576.9684314727783, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 461.37309074401855, + "relativeCreated": 585.3004455566406, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1507,8 +1593,8 @@ "{ 'width': 320, 'height': 240, 'ratio': 0.0, 'duration': 26.531264, 'bitrate': 840554, 'time': 1086778620, 'size': 2787622 }", "" ], - "asctime": "2020-01-30 23:35:34,633", - "created": 1580423734.6338127, + "asctime": "2020-01-31 08:10:17,577", + "created": 1580454617.5770667, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1518,37 +1604,37 @@ "lineno": 26, "message": "Expectation (Media data for video_special_time.avi): result = { 'width': 320, 'height': 240, 'ratio': 0.0, 'duration': 26.531264, 'bitrate': 840554, 'time': 1086778620, 'size': 2787622 } ()", "module": "test", - "msecs": 633.812665939331, + "msecs": 577.0666599273682, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 461.69114112854004, + "relativeCreated": 585.3986740112305, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 634.0901851654053, + "msecs": 577.1665573120117, "msg": "Media data for video_special_time.avi is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 461.96866035461426, + "relativeCreated": 585.498571395874, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00027751922607421875 + "time_consumption": 9.989738464355469e-05 }, { "args": [ "{'width': 640, 'height': 480, 'ratio': 1.3333333333333333, 'duration': 11.016, 'bitrate': 2153411, 'size': 2965248, 'time': 1158528375, 'tm_is_subst': True}", "" ], - "asctime": "2020-01-30 23:35:34,690", - "created": 1580423734.6905332, + "asctime": "2020-01-31 08:10:17,666", + "created": 1580454617.6665187, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1565,8 +1651,8 @@ "{ 'width': 640, 'height': 480, 'ratio': 1.3333333333333333, 'duration': 11.016, 'bitrate': 2153411, 'size': 2965248, 'time': 1158528375, 'tm_is_subst': True }", "" ], - "asctime": "2020-01-30 23:35:34,690", - "created": 1580423734.6902063, + "asctime": "2020-01-31 08:10:17,666", + "created": 1580454617.666085, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1576,15 +1662,15 @@ "lineno": 22, "message": "Result (Media data for video_no_date.avi): { 'width': 640, 'height': 480, 'ratio': 1.3333333333333333, 'duration': 11.016, 'bitrate': 2153411, 'size': 2965248, 'time': 1158528375, 'tm_is_subst': True } ()", "module": "test", - "msecs": 690.2062892913818, + "msecs": 666.0850048065186, "msg": "Result (%s): %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 518.0847644805908, + "relativeCreated": 674.4170188903809, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" }, { @@ -1593,8 +1679,8 @@ "{ 'width': 640, 'height': 480, 'ratio': 1.3333333333333333, 'duration': 11.016, 'bitrate': 2153411, 'time': 1158528375, 'tm_is_subst': True, 'size': 2965248 }", "" ], - "asctime": "2020-01-30 23:35:34,690", - "created": 1580423734.6904237, + "asctime": "2020-01-31 08:10:17,666", + "created": 1580454617.6663933, "exc_info": null, "exc_text": null, "filename": "test.py", @@ -1604,46 +1690,46 @@ "lineno": 26, "message": "Expectation (Media data for video_no_date.avi): result = { 'width': 640, 'height': 480, 'ratio': 1.3333333333333333, 'duration': 11.016, 'bitrate': 2153411, 'time': 1158528375, 'tm_is_subst': True, 'size': 2965248 } ()", "module": "test", - "msecs": 690.4237270355225, + "msecs": 666.3932800292969, "msg": "Expectation (%s): result = %s (%s)", "name": "__unittest__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 518.3022022247314, + "relativeCreated": 674.7252941131592, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread" } ], - "msecs": 690.5331611633301, + "msecs": 666.5186882019043, "msg": "Media data for video_no_date.avi is correct (Content %s and Type is %s).", "name": "__tLogger__", "pathname": "src/unittest/test.py", - "process": 7409, + "process": 21438, "processName": "MainProcess", - "relativeCreated": 518.4116363525391, + "relativeCreated": 674.8507022857666, "stack_info": null, - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.00010943412780761719 + "time_consumption": 0.00012540817260742188 } ], - "thread": 140036534933312, + "thread": 140584323143488, "threadName": "MainThread", - "time_consumption": 0.46115565299987793, - "time_finished": "2020-01-30 23:35:34,690", - "time_start": "2020-01-30 23:35:34,229" + "time_consumption": 0.6170980930328369, + "time_finished": "2020-01-31 08:10:17,666", + "time_start": "2020-01-31 08:10:17,049" } }, "testrun_id": "p3", - "time_consumption": 0.46115565299987793, + "time_consumption": 0.6170980930328369, "uid_list_sorted": [ "_XzMFcHYZEem_kd-7nxt1sg" ] } ], "unittest_information": { - "Version": "8c004e5e652fd9d0db633e752ce36782" + "Version": "4fc2a0b784677a9bebb642985ef6a243" } } \ No newline at end of file diff --git a/_testresults_/unittest.pdf b/_testresults_/unittest.pdf index 6d5adcb..2ffdbfe 100644 Binary files a/_testresults_/unittest.pdf and b/_testresults_/unittest.pdf differ diff --git a/metadata.py b/metadata.py index db667b1..bf6560d 100644 --- a/metadata.py +++ b/metadata.py @@ -99,12 +99,13 @@ def __adapt__data__(data, full_path): # Add time if not exists if KEY_TIME not in data: if KEY_YEAR in data and KEY_TRACK in data: - # Use a date where track 1 is the newest in the given year - minute = int(data[KEY_TRACK] / 60) - second = (data[KEY_TRACK] - 60 * minute) % 60 - # - data[KEY_TIME] = int(time.mktime((data[KEY_YEAR], 1, 1, 0, 59 - minute, 59 - second, 0, 0, 0))) - data[KEY_TIME_IS_SUBSTITUTION] = True + if data[KEY_YEAR] != 0: # ignore year 0 - must be wrong + # Use a date where track 1 is the newest in the given year + minute = int(data[KEY_TRACK] / 60) + second = (data[KEY_TRACK] - 60 * minute) % 60 + # + data[KEY_TIME] = int(time.mktime((data[KEY_YEAR], 1, 1, 0, 59 - minute, 59 - second, 0, 0, 0))) + data[KEY_TIME_IS_SUBSTITUTION] = True else: data[KEY_TIME] = int(os.path.getmtime(full_path)) data[KEY_TIME_IS_SUBSTITUTION] = True