Skip to content

Commit ae22539

Browse files
authored
Include MIT license for Angular usage in web gui and minor formatting tweaks. (#1058)
PiperOrigin-RevId: 480667801
1 parent 598651a commit ae22539

File tree

11 files changed

+75
-56
lines changed

11 files changed

+75
-56
lines changed

LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,29 @@
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203+
204+
205+
===============================================================================
206+
License for angular
207+
===============================================================================
208+
The MIT License
209+
210+
Copyright (c) 2010-2022 Google LLC. https://angular.io/license
211+
212+
Permission is hereby granted, free of charge, to any person obtaining a copy
213+
of this software and associated documentation files (the "Software"), to deal
214+
in the Software without restriction, including without limitation the rights
215+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
216+
copies of the Software, and to permit persons to whom the Software is
217+
furnished to do so, subject to the following conditions:
218+
219+
The above copyright notice and this permission notice shall be included in
220+
all copies or substantial portions of the Software.
221+
222+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
223+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
224+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
225+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
226+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
227+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
228+
THE SOFTWARE.

examples/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/core/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/core/phase_branches.py

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PreviousPhases(enum.Enum):
5656
ALL = 'ALL'
5757

5858
# Check all previous phases in the current subtest.
59-
SUBTEST = "SUBTEST"
59+
SUBTEST = 'SUBTEST'
6060

6161

6262
def _not_any(iterable: Iterator[bool]) -> bool:
@@ -183,20 +183,19 @@ def apply_to_all_phases(
183183
return self
184184

185185
def get_result(
186-
self,
187-
running_test_state: 'test_state.TestState',
188-
subtest_rec: Optional[test_record.SubtestRecord] = None
186+
self,
187+
running_test_state: 'test_state.TestState',
188+
subtest_rec: Optional[test_record.SubtestRecord] = None
189189
) -> phase_descriptor.PhaseReturnT:
190190
if self._check_for_action(running_test_state, subtest_rec):
191191
return self.action
192192
return phase_descriptor.PhaseResult.CONTINUE
193193

194194
@abc.abstractmethod
195195
def _check_for_action(
196-
self,
197-
running_test_state: 'test_state.TestState',
198-
subtest_rec: Optional[test_record.SubtestRecord] = None
199-
) -> bool:
196+
self,
197+
running_test_state: 'test_state.TestState',
198+
subtest_rec: Optional[test_record.SubtestRecord] = None) -> bool:
200199
"""Returns True when the action should be taken."""
201200

202201
@abc.abstractmethod
@@ -244,20 +243,19 @@ def _phase_failed(self, phase_rec: test_record.PhaseRecord) -> bool:
244243
return phase_rec.outcome == test_record.PhaseOutcome.FAIL
245244

246245
def _check_for_action(
247-
self,
248-
running_test_state: 'test_state.TestState',
249-
subtest_rec: Optional[test_record.SubtestRecord] = None
250-
) -> bool:
246+
self,
247+
running_test_state: 'test_state.TestState',
248+
subtest_rec: Optional[test_record.SubtestRecord] = None) -> bool:
251249
"""Returns True when the specific set of phases fail."""
252250
phase_records = running_test_state.test_record.phases
253251
if not phase_records:
254252
raise NoPhasesFoundError('No phases found in the test record.')
255253
if self.previous_phases_to_check == PreviousPhases.LAST:
256254
return self._phase_failed(phase_records[-1])
257-
elif (self.previous_phases_to_check == PreviousPhases.SUBTEST and
255+
elif (self.previous_phases_to_check == PreviousPhases.SUBTEST and
258256
subtest_rec is not None):
259257
for phase_rec in phase_records:
260-
if (phase_rec.subtest_name == subtest_rec.name and
258+
if (phase_rec.subtest_name == subtest_rec.name and
261259
self._phase_failed(phase_rec)):
262260
return True
263261
else:
@@ -286,10 +284,9 @@ def _asdict(self) -> Dict[Text, Any]:
286284
return ret
287285

288286
def _check_for_action(
289-
self,
290-
running_test_state: 'test_state.TestState',
291-
subtest_rec: Optional[test_record.SubtestRecord] = None
292-
) -> bool:
287+
self,
288+
running_test_state: 'test_state.TestState',
289+
subtest_rec: Optional[test_record.SubtestRecord] = None) -> bool:
293290
"""Returns True if the condition is true."""
294291
return self.diag_condition.check(running_test_state.diagnoses_manager.store)
295292

openhtf/output/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/output/proto/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/output/servers/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/output/web_gui/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

openhtf/plugs/generic/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

pylint_plugins/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

0 commit comments

Comments
 (0)