Skip to content

Commit

Permalink
bash script for venv shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed May 24, 2024
1 parent 9e45956 commit c675d89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@
sys.path.append("..")

import unittest
from helper import extract_decimal
from unittest.mock import patch
import io
import threading
import requests
import time
import subprocess
import os
from helper import extract_decimal
from api import get_coordinates, get_uv, ocean_information
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()
port = int(os.getenv("PORT"))


class TestDecimal(unittest.TestCase):
Expand Down
12 changes: 12 additions & 0 deletions start_venv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

#Shortcut to start the venv(not much of a shortcut however)
#Just run: source start_venv.sh


echo "Activating virtual environment..."
activate () {
. venv/bin/activate
}
activate

0 comments on commit c675d89

Please sign in to comment.