Skip to content

Commit

Permalink
some old refs to simple_root
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Cooper committed Jul 12, 2023
1 parent ddf2e22 commit 72a6126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions simple_app/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
# local packages
from ..utils import *

db_name = 'simple_root/temp.db'
db_name = 'temp.db'
db_cs = f'sqlite:///{db_name}'


@pytest.fixture(scope='module')
def db():
if os.path.exists(db_name):
os.remove(db_name)
copy('simple_root/SIMPLE.db', db_name)
copy('SIMPLE.db', db_name)
assert os.path.exists(db_name)
# Connect to the new database and confirm it has the Sources table
db = SimpleDB(db_cs)
Expand Down
4 changes: 2 additions & 2 deletions simple_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def sysargs():
_args.add_argument('-p', '--port', default=8000,
help='Local port number to host server through, default 8000', type=int)
_args.add_argument('-d', '--debug', help='Run Flask in debug mode?', default=False, action='store_true')
_args.add_argument('-f', '--file', default='simple_root/SIMPLE.db',
_args.add_argument('-f', '--file', default='SIMPLE.db',
help='Database file path relative to current directory, default SIMPLE.db')
_args = _args.parse_args()
return _args
Expand Down Expand Up @@ -229,7 +229,7 @@ class JSCallbacks:

def __init__(self):
jsfuncnames = ('dropdownx_js', 'dropdowny_js', 'button_flip', 'normslider', 'reset_slider')
with open('simple_root/simple_app/simple_callbacks.js', 'r') as fcall:
with open('simple_app/simple_callbacks.js', 'r') as fcall:
whichvar = ''
outstr = """"""
for line in fcall:
Expand Down

0 comments on commit 72a6126

Please sign in to comment.