def test_with_unprovisioned_expired_clins_environment(self): self.create_portfolio_with_clins( [(self.YESTERDAY, self.YESTERDAY)], { "cloud_id": uuid4().hex, "root_user_info": None }, ) assert (len( Environments.get_environments_pending_atat_user_creation( self.NOW)) == 0)
def dispatch_create_atat_admin_user(self): for environment_id in Environments.get_environments_pending_atat_user_creation( pendulum.now()): create_atat_admin_user.delay(environment_id=environment_id)