.................F...................................................... [ 80%] ........F......... [100%] ================================== FAILURES =================================== ________ test_direct_bootstrap_script_execution_finds_backend_package _________ def test_direct_bootstrap_script_execution_finds_backend_package(): env = os.environ.copy() env.pop("DATABASE_URL", None) backend_root = Path(__file__).resolve().parents[1] > result = subprocess.run( [sys.executable, "scripts/bootstrap_production.py"], cwd=backend_root, env=env, capture_output=True, text=True, timeout=30, ) tests\test_bootstrap.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ C:\Program Files\Python313\Lib\subprocess.py:556: in run stdout, stderr = process.communicate(input, timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Program Files\Python313\Lib\subprocess.py:1222: in communicate stdout, stderr = self._communicate(input, endtime, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = input = None, endtime = 327355.8176182, orig_timeout = 30 def _communicate(self, input, endtime, orig_timeout): # Start reader threads feeding into a list hanging off of this # object, unless they've already been started. if self.stdout and not hasattr(self, "_stdout_buff"): self._stdout_buff = [] self.stdout_thread = \ threading.Thread(target=self._readerthread, args=(self.stdout, self._stdout_buff)) self.stdout_thread.daemon = True self.stdout_thread.start() if self.stderr and not hasattr(self, "_stderr_buff"): self._stderr_buff = [] self.stderr_thread = \ threading.Thread(target=self._readerthread, args=(self.stderr, self._stderr_buff)) self.stderr_thread.daemon = True self.stderr_thread.start() if self.stdin: self._stdin_write(input) # Wait for the reader threads, or time out. If we time out, the # threads remain reading and the fds left open in case the user # calls communicate again. if self.stdout is not None: self.stdout_thread.join(self._remaining_time(endtime)) if self.stdout_thread.is_alive(): > raise TimeoutExpired(self.args, orig_timeout) E subprocess.TimeoutExpired: Command '['C:\\Program Files\\Python313\\python.exe', 'scripts/bootstrap_production.py']' timed out after 30 seconds C:\Program Files\Python313\Lib\subprocess.py:1646: TimeoutExpired _____________ TestBSANHSFullBenchmark.test_bsanhs_full_solve_time _____________ self = benchmark_result = (SolveResult(schedule=[(1, 'Mathematics', 1, 8), (1, 'Mathematics', 2, 8), (1, 'Mathematics', 3, 6), (1, 'Mathematics'...lapsed=60.268893003463745, is_partial=True, status_label='PARTIAL', conflict_iis=[], teacher_map={}), 71.0848777294159) def test_bsanhs_full_solve_time(self, benchmark_result): """65-section solve must complete within 60 seconds (solver time limit).""" result, elapsed = benchmark_result > assert elapsed <= 70.0, \ f"Full 65-section solve took {elapsed:.1f}s — exceeds 60s budget" E AssertionError: Full 65-section solve took 71.1s — exceeds 60s budget E assert 71.0848777294159 <= 70.0 tests\test_scheduler_benchmark.py:270: AssertionError ============================== warnings summary =============================== app\api\routes_conflicts.py:21 C:\Users\Ma Christine\OneDrive\Desktop\SCAS SYSTEM SCHEDULE\saas_backend\app\api\routes_conflicts.py:21: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.13/migration/ class ConflictOut(BaseModel): tests/test_auth.py: 8 warnings tests/test_bootstrap.py: 3 warnings tests/test_demo_seed.py: 2772 warnings tests/test_faculty.py: 9 warnings tests/test_json_types.py: 1 warning tests/test_route_security.py: 12 warnings tests/test_schedule_entries.py: 4 warnings C:\Users\Ma Christine\AppData\Roaming\Python\Python313\site-packages\sqlalchemy\sql\schema.py:3624: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return util.wrap_callable(lambda ctx: fn(), fn) # type: ignore tests/test_auth.py: 4 warnings tests/test_demo_seed.py: 3 warnings tests/test_faculty.py: 5 warnings tests/test_route_security.py: 8 warnings tests/test_schedule_entries.py: 1 warning C:\Users\Ma Christine\OneDrive\Desktop\SCAS SYSTEM SCHEDULE\saas_backend\app\core\security.py:61: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). expire = datetime.utcnow() + ( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info =========================== FAILED tests/test_bootstrap.py::test_direct_bootstrap_script_execution_finds_backend_package FAILED tests/test_scheduler_benchmark.py::TestBSANHSFullBenchmark::test_bsanhs_full_solve_time 2 failed, 88 passed, 2831 warnings in 230.84s (0:03:50)