Skip to content

Commit 6506e5d

Browse files
committed
Python: Django test: Add testapp
1 parent c71c41b commit 6506e5d

File tree

8 files changed

+18
-1
lines changed

8 files changed

+18
-1
lines changed

python/ql/test/experimental/library-tests/frameworks/django-v2-v3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Tests for Django in version 2.x and 3.x.
22

3-
This folder contains a runable django application generated with `django-admin startproject testproj`
3+
This folder contains a runable django application generated with `django-admin startproject testproj` and `django-admin startapp testapp`.
44

55
To run the development server, install django (in venv), and run `python manage.py runserver`
66

python/ql/test/experimental/library-tests/frameworks/django-v2-v3/testapp/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class TestappConfig(AppConfig):
5+
name = 'testapp'

python/ql/test/experimental/library-tests/frameworks/django-v2-v3/testapp/migrations/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.shortcuts import render
2+
3+
# Create your views here.

0 commit comments

Comments
 (0)