Browse Source

Release: 2085183bcf

master
Dirk Alders 4 years ago
parent
commit
c932f779bf
4 changed files with 1370 additions and 1363 deletions
  1. 2
    1
      __init__.py
  2. 32
    31
      _testresults_/coverage.xml
  3. 1336
    1331
      _testresults_/unittest.json
  4. BIN
      _testresults_/unittest.pdf

+ 2
- 1
__init__.py View File

164
         elif orientation == ORIENTATION_RIGHT_ROTATED:
164
         elif orientation == ORIENTATION_RIGHT_ROTATED:
165
             angle = 90
165
             angle = 90
166
         else:
166
         else:
167
-            logger.warning('Orientation %s unknown for rotation', repr(orientation))
167
+            if type(orientation) == int and orientation > 8:
168
+                logger.warning('Orientation %s unknown for rotation', repr(orientation))
168
             return False
169
             return False
169
         logger.debug('Rotating picture by %d°', angle)
170
         logger.debug('Rotating picture by %d°', angle)
170
         self._im = self._im.rotate(angle, expand=True)
171
         self._im = self._im.rotate(angle, expand=True)

+ 32
- 31
_testresults_/coverage.xml View File

1
 <?xml version="1.0" ?>
1
 <?xml version="1.0" ?>
2
-<coverage branch-rate="0.9667" branches-covered="87" branches-valid="90" complexity="0" line-rate="0.9775" lines-covered="347" lines-valid="355" timestamp="1580683820455" version="4.5">
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">
3
 	<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
3
 	<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
4
 	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
4
 	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
5
 	<sources/>
5
 	<sources/>
6
 	<packages>
6
 	<packages>
7
-		<package branch-rate="0.9667" complexity="0" line-rate="0.9775" name=".user_data.data.dirk.prj.unittest.media.pylibs.media">
7
+		<package branch-rate="0.9565" complexity="0" line-rate="0.9775" name=".user_data.data.dirk.prj.unittest.media.pylibs.media">
8
 			<classes>
8
 			<classes>
9
-				<class branch-rate="0.9773" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/__init__.py" line-rate="0.9934" name="__init__.py">
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
 					<methods/>
10
 					<methods/>
11
 					<lines>
11
 					<lines>
12
 						<line hits="1" number="4"/>
12
 						<line hits="1" number="4"/>
121
 						<line hits="1" number="163"/>
121
 						<line hits="1" number="163"/>
122
 						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="164"/>
122
 						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="164"/>
123
 						<line hits="1" number="165"/>
123
 						<line hits="1" number="165"/>
124
-						<line hits="1" number="167"/>
124
+						<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="169" number="167"/>
125
 						<line hits="1" number="168"/>
125
 						<line hits="1" number="168"/>
126
 						<line hits="1" number="169"/>
126
 						<line hits="1" number="169"/>
127
 						<line hits="1" number="170"/>
127
 						<line hits="1" number="170"/>
128
 						<line hits="1" number="171"/>
128
 						<line hits="1" number="171"/>
129
-						<line hits="1" number="173"/>
129
+						<line hits="1" number="172"/>
130
 						<line hits="1" number="174"/>
130
 						<line hits="1" number="174"/>
131
-						<line hits="1" number="176"/>
132
-						<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="180" number="177"/>
133
-						<line hits="1" number="178"/>
134
-						<line hits="0" number="180"/>
135
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="182"/>
136
-						<line hits="1" number="183"/>
131
+						<line hits="1" number="175"/>
132
+						<line hits="1" number="177"/>
133
+						<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="181" number="178"/>
134
+						<line hits="1" number="179"/>
135
+						<line hits="0" number="181"/>
136
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="183"/>
137
 						<line hits="1" number="184"/>
137
 						<line hits="1" number="184"/>
138
-						<line hits="1" number="187"/>
139
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="188"/>
140
-						<line hits="1" number="189"/>
138
+						<line hits="1" number="185"/>
139
+						<line hits="1" number="188"/>
140
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="189"/>
141
 						<line hits="1" number="190"/>
141
 						<line hits="1" number="190"/>
142
-						<line hits="1" number="192"/>
143
-						<line hits="1" number="194"/>
142
+						<line hits="1" number="191"/>
143
+						<line hits="1" number="193"/>
144
 						<line hits="1" number="195"/>
144
 						<line hits="1" number="195"/>
145
 						<line hits="1" number="196"/>
145
 						<line hits="1" number="196"/>
146
-						<line hits="1" number="198"/>
147
-						<line hits="1" number="201"/>
148
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="203"/>
149
-						<line hits="1" number="204"/>
150
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="205"/>
151
-						<line hits="1" number="206"/>
152
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="207"/>
153
-						<line hits="1" number="208"/>
154
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="209"/>
155
-						<line hits="1" number="210"/>
156
-						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="211"/>
157
-						<line hits="1" number="212"/>
158
-						<line hits="1" number="214"/>
146
+						<line hits="1" number="197"/>
147
+						<line hits="1" number="199"/>
148
+						<line hits="1" number="202"/>
149
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="204"/>
150
+						<line hits="1" number="205"/>
151
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="206"/>
152
+						<line hits="1" number="207"/>
153
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="208"/>
154
+						<line hits="1" number="209"/>
155
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="210"/>
156
+						<line hits="1" number="211"/>
157
+						<line branch="true" condition-coverage="100% (2/2)" hits="1" number="212"/>
158
+						<line hits="1" number="213"/>
159
 						<line hits="1" number="215"/>
159
 						<line hits="1" number="215"/>
160
-						<line hits="1" number="217"/>
160
+						<line hits="1" number="216"/>
161
 						<line hits="1" number="218"/>
161
 						<line hits="1" number="218"/>
162
-						<line hits="1" number="220"/>
162
+						<line hits="1" number="219"/>
163
+						<line hits="1" number="221"/>
163
 					</lines>
164
 					</lines>
164
 				</class>
165
 				</class>
165
 				<class branch-rate="1" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/common.py" line-rate="1" name="common.py">
166
 				<class branch-rate="1" complexity="0" filename="/user_data/data/dirk/prj/unittest/media/pylibs/media/common.py" line-rate="1" name="common.py">

+ 1336
- 1331
_testresults_/unittest.json
File diff suppressed because it is too large
View File


BIN
_testresults_/unittest.pdf View File


Loading…
Cancel
Save