Dirk Alders 4 år sedan
förälder
incheckning
664f5a7587
4 ändrade filer med 1379 tillägg och 1297 borttagningar
  1. 10
    7
      _testresults_/coverage.xml
  2. 1365
    1289
      _testresults_/unittest.json
  3. Binär
      _testresults_/unittest.pdf
  4. 4
    1
      metadata.py

+ 10
- 7
_testresults_/coverage.xml Visa fil

@@ -1,10 +1,10 @@
1 1
 <?xml version="1.0" ?>
2
-<coverage branch-rate="0.9565" branches-covered="88" branches-valid="92" complexity="0" line-rate="0.9775" lines-covered="348" lines-valid="356" timestamp="1580727115809" version="4.5">
2
+<coverage branch-rate="0.9674" branches-covered="89" branches-valid="92" complexity="0" line-rate="0.9777" lines-covered="351" lines-valid="359" timestamp="1591793830295" version="4.5">
3 3
 	<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
4 4
 	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
5 5
 	<sources/>
6 6
 	<packages>
7
-		<package branch-rate="0.9565" complexity="0" line-rate="0.9775" name=".user_data.data.dirk.prj.unittest.media.pylibs.media">
7
+		<package branch-rate="0.9674" complexity="0" line-rate="0.9777" name=".user_data.data.dirk.prj.unittest.media.pylibs.media">
8 8
 			<classes>
9 9
 				<class branch-rate="0.9565" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/__init__.py" line-rate="0.9934" name="__init__.py">
10 10
 					<methods/>
@@ -218,7 +218,7 @@
218 218
 						<line hits="1" number="35"/>
219 219
 					</lines>
220 220
 				</class>
221
-				<class branch-rate="0.9667" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/metadata.py" line-rate="0.9811" name="metadata.py">
221
+				<class branch-rate="1" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/metadata.py" line-rate="0.9815" name="metadata.py">
222 222
 					<methods/>
223 223
 					<lines>
224 224
 						<line hits="1" number="1"/>
@@ -372,14 +372,17 @@
372 372
 						<line hits="1" number="215"/>
373 373
 						<line hits="1" number="216"/>
374 374
 						<line hits="1" number="217"/>
375
-						<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="exit" number="218"/>
375
+						<line hits="1" number="218"/>
376 376
 						<line hits="1" number="219"/>
377 377
 						<line hits="1" number="220"/>
378
-						<line hits="1" number="221"/>
378
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="221"/>
379
+						<line hits="1" number="222"/>
380
+						<line hits="1" number="223"/>
379 381
 						<line hits="1" number="224"/>
380
-						<line hits="1" number="225"/>
381
-						<line hits="1" number="226"/>
382 382
 						<line hits="1" number="227"/>
383
+						<line hits="1" number="228"/>
384
+						<line hits="1" number="229"/>
385
+						<line hits="1" number="230"/>
383 386
 					</lines>
384 387
 				</class>
385 388
 			</classes>

+ 1365
- 1289
_testresults_/unittest.json
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Binär
_testresults_/unittest.pdf Visa fil


+ 4
- 1
metadata.py Visa fil

@@ -209,7 +209,10 @@ def __gps_conv__(data):
209 209
         lon_lat = 0.
210 210
         fac = 1.
211 211
         for num, denum in lon_or_lat:
212
-            lon_lat += float(num) / float(denum) * fac
212
+            try:
213
+                lon_lat += float(num) / float(denum) * fac
214
+            except ZeroDivisionError:
215
+                return 0.
213 216
             fac *= 1. / 60.
214 217
         return lon_lat
215 218
     try:

Laddar…
Avbryt
Spara