Skip to content

Commit

Permalink
complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobbins committed Jan 17, 2025
1 parent 1e33a23 commit 4ccc4f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions api/converters_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def test_minimal(self):
def test_maxmimal(self, mock_now):
"""If a Gate has all fields set, we can convert it to JSON."""
gate = Gate(
feature_id=1, stage_id=2, gate_type=34, state=4,
feature_id=1, stage_id=2, gate_type=GATE_SECURITY_ORIGIN_TRIAL, state=4,
requested_on=datetime(2022, 12, 14, 1, 2, 3), # Wednesday
assignee_emails=['appr1@example.com', 'appr2@example.com'],
next_action=datetime(2022, 12, 25),
Expand All @@ -572,10 +572,10 @@ def test_maxmimal(self, mock_now):
'id': gate.key.integer_id(),
'feature_id': 1,
'stage_id': 2,
'gate_type': 34,
'gate_type': GATE_SECURITY_ORIGIN_TRIAL,
'team_name': appr_def.team_name,
'gate_name': appr_def.name,
'escalation_email': 'chrome-privacy-owp-rotation@google.com',
'escalation_email': None,
'state': 4,
'requested_on': '2022-12-14 01:02:03',
'responded_on': None,
Expand All @@ -591,8 +591,8 @@ def test_maxmimal(self, mock_now):
'needs_work_started_on': None,
'self_certify_eligible': True,
'survey_answers': {
'is_language_polyfill': True,
'is_api_polyfill': False,
'is_language_polyfill': True,
'is_same_origin_css': False,
'launch_or_contact': 'reviewer@example.com',
},
Expand Down
2 changes: 0 additions & 2 deletions internals/self_certify.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from google.cloud import ndb # type: ignore

from chromestatus_openapi.models import SurveyAnswers as OASurveyAnswers

from internals.core_enums import GATE_SECURITY_ORIGIN_TRIAL, GATE_SECURITY_SHIP
Expand Down

0 comments on commit 4ccc4f4

Please sign in to comment.