Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created September 25, 2023 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pydanny/0d326c36968480968aabfbfe8d18faf4 to your computer and use it in GitHub Desktop.
Save pydanny/0d326c36968480968aabfbfe8d18faf4 to your computer and use it in GitHub Desktop.
import os
import glob
from dj_notebook import activate
def test_thing():
print(os.getcwd())
os.chdir("tests/django_test_project")
print(glob.glob("*"))
print(os.getcwd())
assert activate("book_store.settings") == "Hello, world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment