/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
scripts/linters/test_files/invalid_datastore.py
31 строка
961 B
Anshuman Maurya
Milestone 1.1 (Improve line and branch coverage for the frontend and the backend): Checks to ensure that every backend file has an associated test file (#15625)
10 июл 2022, 09:12
Не верифицирован
10 июл 2022, 09:12
bd4a297
Код
Авторство
О чём код?
# coding: utf-8 # # Copyright 2020 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS-IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Python file with invalid usage of ndb, used by scripts/linters/ python_linter_test. This file's use of ndb which is not allowed. """ from __future__ import annotations import datetime from google.appengine.ext import ndb class FakeClass(ndb.Model): """Class breaking contract of ndb usage.""" prop = ndb.StringProperty()