From c2ffdf5d1b301eac8b188d4c76d1f1c0be4d3010 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Thu, 6 Oct 2022 13:06:51 -0500 Subject: [PATCH] refactor tests folder --- {data => doc}/lms.log | 0 {data => tests/data}/get_user_details.json | 0 {data => tests/data}/get_user_details_extended.json | 0 {data => tests/data}/wp-oauth-me.json | 0 {data => tests/data}/wp-oauth-response-expired-token.json | 0 {data => tests/data}/wp-oauth-response.json | 0 {data => tests}/tests.py | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) rename {data => doc}/lms.log (100%) rename {data => tests/data}/get_user_details.json (100%) rename {data => tests/data}/get_user_details_extended.json (100%) rename {data => tests/data}/wp-oauth-me.json (100%) rename {data => tests/data}/wp-oauth-response-expired-token.json (100%) rename {data => tests/data}/wp-oauth-response.json (100%) rename {data => tests}/tests.py (95%) diff --git a/data/lms.log b/doc/lms.log similarity index 100% rename from data/lms.log rename to doc/lms.log diff --git a/data/get_user_details.json b/tests/data/get_user_details.json similarity index 100% rename from data/get_user_details.json rename to tests/data/get_user_details.json diff --git a/data/get_user_details_extended.json b/tests/data/get_user_details_extended.json similarity index 100% rename from data/get_user_details_extended.json rename to tests/data/get_user_details_extended.json diff --git a/data/wp-oauth-me.json b/tests/data/wp-oauth-me.json similarity index 100% rename from data/wp-oauth-me.json rename to tests/data/wp-oauth-me.json diff --git a/data/wp-oauth-response-expired-token.json b/tests/data/wp-oauth-response-expired-token.json similarity index 100% rename from data/wp-oauth-response-expired-token.json rename to tests/data/wp-oauth-response-expired-token.json diff --git a/data/wp-oauth-response.json b/tests/data/wp-oauth-response.json similarity index 100% rename from data/wp-oauth-response.json rename to tests/data/wp-oauth-response.json diff --git a/data/tests.py b/tests/tests.py similarity index 95% rename from data/tests.py rename to tests/tests.py index 2e1d211..5903c8d 100644 --- a/data/tests.py +++ b/tests/tests.py @@ -1,7 +1,7 @@ import json # Opening JSON file -f = open("get_user_details_extended.json") +f = open("./data/get_user_details_extended.json") # returns JSON object as # a dictionary