tests/functional/test_unhappy_path.py
def add_project_not_logged_in(test_client):
	"""
	GIVEN a non logged in user
	WHEN add project is called with valid data
	THEN a 401 is returned
	"""
	data = {'title': 'my new project'}
	r = test_client.post('/add_project', json=data)
	assert r.status_code == 401

	GIVEN a non logged in user
	WHEN add project is called with valid data
	THEN a 401 is returned
	
GIVEN a non logged in user
WHEN add project is called with valid data
THEN a 401 is returned
GIVEN a non logged in user WHEN add project is called with valid data THEN a 401 is returned
def add_project_not_logged_in(test_client):
	data = {'title': 'my new project'}
	r = test_client.post('/add_project', json=data)
	assert r.status_code == 401
def add_project_not_logged_in ( test_client ) : data = { 'title' : 'my new project' } r = test_client . post ( '/add_project' , json = data ) assert r . status_code == 401
GIVEN a non logged in user
WHEN add project is called with valid data
THEN a 401 is returned
GIVEN a non logged in user WHEN add project is called with valid data THEN a 401 is returned
"""
	GIVEN a non logged in user
	WHEN add project is called with valid data
	THEN a 401 is returned
	"""
test_client