-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42c1fcf
commit e50a8c2
Showing
9 changed files
with
144 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Open-Tamil Python package | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8,3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
# Runs a single command using the runners shell | ||
- name: Custom Python Test for Open-Tamil | ||
run: | ||
- name: Run Tests | ||
run: | | ||
python manage.py makemigrations | ||
python manage.py migrate | ||
python manage.py test |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
from django.contrib import admin | ||
|
||
from student.models import Student | ||
|
||
# Register your models here. | ||
admin.site.register(Student) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
celery==5.2.7 | ||
certifi==2023.11.17 | ||
cffi==1.16.0 | ||
charset-normalizer==3.3.2 | ||
Django==4.2.9 | ||
django-allauth==0.51.0 | ||
django-bootstrap4==23.4 | ||
django-recaptcha==4.0.0 | ||
django-rest-framework==0.1.0 | ||
django-scheduler==0.10.1 | ||
django-ses==3.5.2 | ||
django-silk==5.0.3 | ||
django-storages==1.14.2 | ||
djangorestframework==3.14.0 | ||
djoser==2.2.2 | ||
docutils==0.20.1 | ||
easypost==8.0.0 | ||
environs==9.5.0 | ||
factory-boy==3.2.1 | ||
Faker==22.5.1 | ||
numpy==1.25.2 | ||
oauthlib==3.2.2 | ||
pandas==1.5.0 | ||
psycopg2-binary==2.9.9 | ||
ytest==7.4.0 | ||
python-dotenv==1.0.1 | ||
python-fsutil==0.13.1 | ||
python3-openid==3.2.0 | ||
pytz==2023.3.post1 | ||
PyYAML==6.0.1 | ||
requests==2.31.0 | ||
scipy==1.11.4 | ||
six==1.16.0 | ||
slack-sdk==3.23.0 | ||
smart-open==7.0.1 | ||
social-auth-app-django==5.4.0 | ||
social-auth-core==4.5.3 | ||
soupsieve==2.5 | ||
sqlparse==0.4.4 | ||
statsmodels==0.14.0 | ||
tenacity==8.2.3 | ||
threadpoolctl==3.3.0 | ||
typing_extensions==4.9.0 | ||
ua-parser==0.18.0 | ||
urllib3==2.0.7 | ||
user-agents==2.2.0 | ||
validators==0.20.0 | ||
vine==5.1.0 | ||
wcwidth==0.2.13 | ||
wrapt==1.16.0 | ||
XlsxWriter==3.1.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
from django.test import TestCase | ||
# (C) 2024, PanMo LLC. | ||
# This file is part of ConFab - DOE platform. | ||
# Private and Confidential - donot distribute. | ||
|
||
# Create your tests here. | ||
import os | ||
import io | ||
import datetime | ||
import json | ||
from io import BytesIO | ||
|
||
from django.test import TestCase, RequestFactory, Client | ||
from django.urls import reverse | ||
from django.contrib.auth.models import User, Permission | ||
from django.utils import timezone | ||
|
||
from .models import Student | ||
|
||
|
||
class StudentTests(TestCase): | ||
def setUp(self): | ||
self.user = User.objects.create_user(username='testuser', password='testpassword') | ||
self.client.login(username='testuser', password='testpassword') | ||
|
||
self.student = Student.objects.create() | ||
|
||
|
||
########################## TEST CASES START ############################# | ||
|
||
# /confab/flow/ confab.views.flow_view confab:flow_index | ||
|
||
def test_student_get_list_action(self): | ||
# Case 1: Flow search is successful, and the template is rendered | ||
request = self.client.get(reverse('student:listAction')) | ||
self.assertEqual(request.status_code, 200) | ||
#self.assertTemplateUsed(request, 'confab/flow_index.html') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters