Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test book #12

Open
wants to merge 2 commits into
base: test-book
Choose a base branch
from
Open

Test book #12

wants to merge 2 commits into from

Conversation

rkulskis
Copy link

@rkulskis rkulskis commented Oct 24, 2023

testing folder to be used with ope test command to run all environment tests to ensure that everything is properly configured. Written by CS528 OPE team.

�[0;31m---------------------------------------------------------------------------�[0m
�[0;31mKeyError�[0m                                  Traceback (most recent call last)
Cell �[0;32mIn[1], line 3�[0m
�[1;32m      1�[0m �[38;5;66;03m#Load environment variables from system into python�[39;00m
�[0;32m----> 3�[0m OPE_UID �[38;5;241m=�[39m �[43mos�[49m�[38;5;241;43m.�[39;49m�[43menviron�[49m�[43m[�[49m�[38;5;124;43m'�[39;49m�[38;5;124;43mOPE_UID�[39;49m�[38;5;124;43m'�[39;49m�[43m]�[49m
�[1;32m      4�[0m OPE_GID �[38;5;241m=�[39m os�[38;5;241m.�[39menviron[�[38;5;124m'�[39m�[38;5;124mOPE_GID�[39m�[38;5;124m'�[39m]
�[1;32m      5�[0m OPE_GROUP �[38;5;241m=�[39m os�[38;5;241m.�[39menviron[�[38;5;124m'�[39m�[38;5;124mOPE_GROUP�[39m�[38;5;124m'�[39m]

File �[0;32m~/miniconda3/lib/python3.10/os.py:680�[0m, in �[0;36m_Environ.__getitem__�[0;34m(self, key)�[0m
�[1;32m    677�[0m     value �[38;5;241m=�[39m �[38;5;28mself�[39m�[38;5;241m.�[39m_data[�[38;5;28mself�[39m�[38;5;241m.�[39mencodekey(key)]
�[1;32m    678�[0m �[38;5;28;01mexcept�[39;00m �[38;5;167;01mKeyError�[39;00m:
�[1;32m    679�[0m     �[38;5;66;03m# raise KeyError with the original key value�[39;00m
�[0;32m--> 680�[0m     �[38;5;28;01mraise�[39;00m �[38;5;167;01mKeyError�[39;00m(key) �[38;5;28;01mfrom�[39;00m �[38;5;28;01mNone�[39;00m
�[1;32m    681�[0m �[38;5;28;01mreturn�[39;00m �[38;5;28mself�[39m�[38;5;241m.�[39mdecodevalue(value)

�[0;31mKeyError�[0m: 'OPE_UID' to do notebook test for envirnoment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant