File indexing completed on 2026-09-01 09:34:24
0001 from django.test import SimpleTestCase
0002
0003 from monitor_app.management.commands.sweep_panda_associations import (
0004 _should_auto_intake,
0005 )
0006
0007
0008 class AssociationSweepIntakeTests(SimpleTestCase):
0009 def test_only_missing_pcs_identity_enters_direct_intake(self):
0010 self.assertTrue(_should_auto_intake(
0011 "no exact PCS match for PanDA taskname 'group.EIC.sample'"))
0012 self.assertFalse(_should_auto_intake(
0013 "PanDA taskname 'group.EIC.sample' already records jediTaskID 1"))
0014 self.assertFalse(_should_auto_intake(
0015 "ambiguous PCS match for PanDA taskname 'group.EIC.sample'"))