cia-labs / Storage-service

General purpose storage service
GNU General Public License v3.0
9 stars 5 forks source link

change_key_generation_logic #31

Closed takuabonn closed 8 months ago

takuabonn commented 8 months ago

Overview

implement contents

create key generator

create table which save generated key

test case

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju I am sory. Since pytest is not in requirements.txt So far in my environment, I get bash: pytest: command not found I have been using python -m unittest tests/key_generator_test.py instead.

Tejas-ChandraShekarRaju commented 8 months ago

hi, @Tejas-ChandraShekarRaju I am sory. Since pytest is not in requirements.txt So far in my environment, I get bash: pytest: command not found I have been using python -m unittest tests/key_generator_test.py instead.

Pytest should come preinstalled with python 3.10 and above if im not wrong

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju Run pip install pytest, Try pytest.

Tejas-ChandraShekarRaju commented 8 months ago

hi, @Tejas-ChandraShekarRaju Run pip install pytest, Try pytest.

I don't have to. I'm asking if your tests are running with pytest? If yes can you add a screen shot here? Both tests.py and key_generator_tests.py

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju I run it with only the following command python -munittesttests/key_generator_test.py

I did not run it with pytest.

スクリーンショット 2024-03-24 21 44 19

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju Running pytest tests/test.py on the main branch does not It fails as well. Do I need to create the tables before running tests/test.py?

Tejas-ChandraShekarRaju commented 8 months ago

hi, @Tejas-ChandraShekarRaju Running pytest tests/test.py on the main branch does not It fails as well. Do I need to create the tables before running tests/test.py?

No You don't have to

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju Why does test.py fail in my environment even before the modification? If the main branch also fails, it has nothing to do with this fix.

Tejas-ChandraShekarRaju commented 8 months ago

hi, @Tejas-ChandraShekarRaju Why does test.py fail in my environment even before the modification? If the main branch also fails, it has nothing to do with this fix.

Hey, We'll have to verify that. Will check in sometime

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju Does it fail in your environment as well?

Tejas-ChandraShekarRaju commented 8 months ago

hi, @Tejas-ChandraShekarRaju Does it fail in your environment as well?

Hey. It isn't failing. I will approve the workflow run. Let's see if it goes through.

Tejas-ChandraShekarRaju commented 8 months ago

Hi @takuabonn . We are good to go, Your branch is just one commit behind, Can you consume that as well?

takuabonn commented 8 months ago

hi, @Tejas-ChandraShekarRaju The changes were incorporated into the branch.