add test app to manually test the package

This commit is contained in:
Gonçalo Valério 2019-11-17 18:13:57 +00:00
parent b5e46ef712
commit df9e4d8c61
10 changed files with 29 additions and 0 deletions

View File

@ -36,6 +36,7 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
"django_cryptolock",
"testauth",
# if your app has other dependencies that need to be added to the site
# they should be added here
]
@ -109,3 +110,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_URL = "/static/"
# Monero Cryptolock Settings
# Wallet RPC
MONERO_WALLET_RPC_PROTOCOL = os.environ.get("MONERO_WALLET_RPC_PROTOCOL", "http")
MONERO_WALLET_RPC_HOST = os.environ.get("MONERO_WALLET_RPC_HOST", "localhost:6000")
MONERO_WALLET_RPC_USER = os.environ.get("MONERO_WALLET_RPC_USER")
MONERO_WALLET_RPC_PASS = os.environ.get("MONERO_WALLET_RPC_PASS")

View File

@ -20,4 +20,5 @@ from django.contrib import admin
urlpatterns = [
url(r"^admin/", admin.site.urls),
url(r"", include("django_cryptolock.urls", namespace="django_cryptolock")),
url(r"^auth/", include("testauth.urls")),
]

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
example/testauth/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class TestauthConfig(AppConfig):
name = 'testauth'

View File

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
example/testauth/urls.py Normal file
View File

@ -0,0 +1,3 @@
from django.conf.urls import url
urlpatterns = []

View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.