macxred / cashctrl_api

Python client for the CashCtrl REST API
MIT License
0 stars 0 forks source link

feat: create mappers functions for file paths #30

Closed AlexTheWizardL closed 2 months ago

AlexTheWizardL commented 2 months ago

This pull request covers 2 functions:

  1. file_id_to_path()
  2. file_path_to_id()

This functions will help to easily find id or path in the cached files.

@lasuk Please review the changes and provide feedback or approval for merging.

lasuk commented 2 months ago

I've added two commits:

@AlexTheWizardL: I've left a TODO in the code. Can you address this (restore files on the CashCtrl server to the initial state before the test startet)? Thanks

# TODO: We should restore original files after the test is complete
lasuk commented 2 months ago

Let's also override below methods in CashedCashCtrlClient. The overridden methods will first call the parent class method and after that invalidate the corresponding cache:

mirror_directory()
upload_file()
update_categories()
lasuk commented 2 months ago

Thanks! Merging.