CarmineOptions / derisk-research

MIT License
6 stars 32 forks source link

Create mock database and write test cases for CRUD classes #227

Open djeck1432 opened 1 day ago

djeck1432 commented 1 day ago
  1. Read our Contributor Guidelines and README.
  2. In this tests folder, create confest.py file where you will mock db connection using pytest package
  3. Create new folder db_test in tests folder and add there next files test_db_connector.py and test_initializer_db_connector.py in these files, create test cases for next classes:
  4. Please, create negative and positive scenarios. So it should test not only success execution but also raise error to proper handling
martinvibes commented 1 day ago

hello @djeck1432 i would love to work on this one

blessingbytes commented 1 day ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Hello, i'm a frontend and blockchain developer, i would to work on this task

NueloSE commented 1 day ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I have experience in writing test cases to cover for Creation reading update and delete state in a function. I have created test case for a previous project Scaffold contract

How I plan on tackling this issue

I would create unit test file for CRUD operation performed on the database. kindly assign ETA <= 48hrs

djeck1432 commented 1 day ago

@NueloSE @martinvibes Guys, priority for first good issue is always given to newcomers. Just letting you know in case you’re not following us in the Telegram groups.

djeck1432 commented 1 day ago

@blessingbytes are you sure you can do that, as long as you fe developer not backend?

petersdt commented 1 day ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I have experience calling api endpoints from frontend and have worked with database before. with this experience i would be able to test create, read, update and delete operations on a database. I believe despite not being a backend dev with some clearity and research i would be able to complete this task kindly assign. I would love to make this my first contribution to derisk project

How I plan on tackling this issue

i would create a db_test/tests/test_initializer_db_connector.py and db_test/tests/test_db_connector.py and test several edge case for the CRUD operations to the database kiindly assign ETA <= 48hrs

bruhhgnik commented 1 day ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I'm nik, a python developer with prior experience in linux and blockchain dev.

How I plan on tackling this issue

I would love to take on this issue eta: 2 days at max