fix(Config,Database): Remove references to assignment one

This commit is contained in:
2025-11-05 15:50:56 +01:00
parent 523709e349
commit e6123e5702
9 changed files with 33 additions and 64 deletions

View File

@@ -61,7 +61,7 @@ Unit tests for `ConfigManager` are implemented in `src/g2_2025_imu_reader_pkg/te
[database]
host = "localhost"
port = 5432
dbname = "grades"
dbname = "imu_data"
user = "postgres"
password = "postgres"
```

View File

@@ -18,16 +18,16 @@ Unit tests for `DatabaseManager` are implemented in `src/g2_2025_imu_reader_pkg/
- **Test Action:** Call `is_connected()` method
- **Expected Result:** Returns either `true` or `false` (no crashes or invalid states)
### 3. QueuePendingCombinationsTest
### 3. StoreIMUDataWhenNotConnected
**Description:** Verifies retrieval of pending student-course combinations that need exam results.
**Description:** Verifies that storing IMU data without an active database connection fails gracefully.
- Test action: Call `store_imu_data(linear_x, linear_y, linear_z, ang_x, ang_y, ang_z)` without an active DB connection.
- Expected result: Returns `false` and does not throw — method must check connection status before DB operations.
- **Test Action:** Call `store_imu_data(linear_x, linear_y, linear_z, ang_x, ang_y, ang_z)` without an active DB connection
- **Expected Result:** Returns `false` and does not throw — method must check connection status before DB operations
### 4. CreateTablesNoCrash
Description: Verifies calling `create_tables()` without an active connection is safe.
**Description:** Verifies calling `create_tables()` without an active connection is safe.
- Test action: Call `create_tables()` on a manager that is not connected.
- Expected result: No exception thrown; the function should be a no-op when no DB connection exists.
- **Test Action:** Call `create_tables()` on a manager that is not connected
- **Expected Result:** No exception thrown; the function should be a no-op when no DB connection exists