mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Django test: Add testapp
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Tests for Django in version 2.x and 3.x.
|
||||
|
||||
This folder contains a runable django application generated with `django-admin startproject testproj`
|
||||
This folder contains a runable django application generated with `django-admin startproject testproj` and `django-admin startapp testapp`.
|
||||
|
||||
To run the development server, install django (in venv), and run `python manage.py runserver`
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class TestappConfig(AppConfig):
|
||||
name = 'testapp'
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user