Closed jschalk closed 2 weeks ago
This PR implements several code improvements and refactoring changes across multiple files. The main changes include refactoring the fiscal build functionality, improving test organization, and adding new world-related features for handling documentation processes.
classDiagram
class FiscalUnit {
+add_purviewepisode(x_owner_id, x_time_id, x_money_magnitude, allow_prev_to_current_time_entry)
+add_cashpurchase(x_owner_id, x_acct_id, x_time_id, x_amount)
}
class DataFrame
class FiscalBuild {
+_get_fiscal_hours_dict(br00003_df: DataFrame)
+_get_fiscal_months_dict(br00004_df: DataFrame)
+_get_fiscal_weekdays_dict(br00005_df: DataFrame)
+_add_purviewepisode(x_fiscalunit: FiscalUnit, br00001_df: DataFrame)
+_add_cashpurchase(x_fiscalunit: FiscalUnit, br00002_df: DataFrame)
}
classDiagram
class WorldUnit {
+_world_dir: str
+_jungle_dir: str
+_zoo_dir: str
+_set_world_dirs()
+jungle_to_zoo()
}
classDiagram
class BrickFileRef {
+file_dir: str
+file_name: str
+sheet_name: str
+brick_number: str
}
Change | Details | Files |
---|---|---|
Refactored fiscal build functionality by extracting helper methods |
|
src/f09_brick/brick.py |
Added new world-related features for documentation handling |
|
src/f10_world/world.py src/f10_world/world_tool.py src/f10_world/test/test_world_db.py src/f10_world/test/test_world_jungle.py |
Improved test organization and readability |
|
src/f09_brick/test_brick_format/test_brick_models.py src/f09_brick/test_fiscal_build/test_brick_fiscal_build.py src/f09_brick/examples/brick_df_examples.py |
Summary by Sourcery
Refactor fiscal data processing by extracting logic into helper functions and enhance test coverage for database and fiscal data handling.
Enhancements:
Tests: