pydo icon indicating copy to clipboard operation
pydo copied to clipboard

Add Mocked Tests: Functions

Open danaelhe opened this issue 2 years ago • 2 comments

Overview Add more test coverage for Pydo, specifically for Functions

Mocked Tests: tests/mocked/ Tests in the mocked directory include:

  • Tests that validate the generated client has all the expected classes and methods for the respective API resources and operations.
  • Tests that exercise individual operations against mocked responses.

These tests do not act against the real API so no real resources are created.

To run mocked tests, run:

make test-mocked

Instructions

  1. Clone this repo.
  2. If you haven't already, install Python (version: >= 3.7.2) through their official installer.
  3. CD into the directory and run make install
  4. Create file: tests/mocked/test_functions.py
  5. Add tests for functions.create_namespace, functions.create_trigger, functions.delete_namespace, functions.delete_trigger, functions.get_namespace, functions.get_trigger, functions.list_namespaces, functions.list_triggers, functions.update_trigger
  6. API documentation is here
  7. Pydo Documentation is here

danaelhe avatar Sep 28 '23 19:09 danaelhe

Hi @danaelhe I would like to work on this. Kindly assign this to my name

PalaniappanC avatar Sep 30 '23 16:09 PalaniappanC

@PalaniappanC you can start working and make a PR :)

work-mohit avatar Sep 30 '23 16:09 work-mohit

I've started working on this.

giftcup avatar Oct 17 '24 20:10 giftcup