Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Testing #4

Merged
merged 4 commits into from
Feb 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ before_script:
# - psql -c "CREATE DATABASE mydb;" -U postgres
- nvm install 4.3
- nvm use 4.3
- cd demo
- cd testing
- npm install
- webpack --bail
- cd ..
Expand Down
16 changes: 0 additions & 16 deletions demo/myserver/static/myserver/README.rst

This file was deleted.

5 changes: 0 additions & 5 deletions demo/myserver/static/myserver/styles.css

This file was deleted.

15 changes: 0 additions & 15 deletions demo/src/common/user/user.factory.js

This file was deleted.

8 changes: 0 additions & 8 deletions demo/src/common/user/user.js

This file was deleted.

1 change: 0 additions & 1 deletion demo/src/common/user/user.spec.js

This file was deleted.

8 changes: 4 additions & 4 deletions test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ ${HOSTNAME} 127.0.0.1
${PORT} 55001
${SERVER} http://${HOSTNAME}:${PORT}/
${BROWSER} firefox
${DJANGO_PATH} demo/myserver
${DJANGO_MANAGE_PY} demo/manage.py
${DJANGO_SETTINGS} myserver.settings
${DJANGO_DB} demo/db.sqlite3
${DJANGO_PATH} testing/server
${DJANGO_MANAGE_PY} testing/manage.py
${DJANGO_SETTINGS} server.settings
${DJANGO_DB} testing/db.sqlite3


*** Settings ***
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/manage.py → testing/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myserver.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings")

from django.core.management import execute_from_command_line

Expand Down
10 changes: 9 additions & 1 deletion demo/package.json → testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@
"webpack",
"npm"
],
"babel": {
"presets": [
"es2015"
]
},
"author": "Timo Stollenwerk",
"license": "MIT",
"devDependencies": {
"angular-mocks": "^1.4.7",
"babel-loader": "^5.3.2",
"babel-core": "^6.3.26",
"babel-loader": "^6.1.0",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.1.18",
"css-loader": "^0.21.0",
"eslint": "^1.7.3",
"eslint-config-angular": "^0.4.0",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Migration(migrations.Migration):

dependencies = [
('myserver', '0001_initial'),
('server', '0001_initial'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Migration(migrations.Migration):

dependencies = [
('rest_framework_schemaform', '__first__'),
('myserver', '0002_auto_20151126_1040'),
('server', '0002_auto_20151126_1040'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Migration(migrations.Migration):

dependencies = [
('myserver', '0003_auto_20160204_1323'),
('server', '0003_auto_20160204_1323'),
]

operations = [
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions demo/myserver/settings.py → testing/server/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for myserver project.
Django settings for server project.

Generated by 'django-admin startproject' using Django 1.9c1.

Expand Down Expand Up @@ -39,7 +39,7 @@
'django.contrib.staticfiles',
'rest_framework',
'rest_framework_schemaform',
'myserver',
'server',
]

MIDDLEWARE_CLASSES = [
Expand All @@ -66,7 +66,7 @@
),
}

ROOT_URLCONF = 'myserver.urls'
ROOT_URLCONF = 'server.urls'

TEMPLATES = [
{
Expand All @@ -84,7 +84,7 @@
},
]

WSGI_APPLICATION = 'myserver.wsgi.application'
WSGI_APPLICATION = 'server.wsgi.application'


# Database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="utf-8" />
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'myserver/styles.css' %}" />
</head>
<body>
<div class="container-fluid">
Expand All @@ -13,6 +12,6 @@
</app>
</div>
</div>
<script src="{% static 'myserver/bundle.js' %}"></script>
<script src="{% static 'server/bundle.js' %}"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions demo/myserver/urls.py → testing/server/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""myserver URL Configuration
"""server URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/topics/http/urls/
Expand All @@ -17,7 +17,7 @@
from django.conf.urls import url, include
from django.contrib import admin
from rest_framework import routers
from myserver import views
from server import views

router = routers.DefaultRouter()
router.register(r'application', views.ApplicationViewSet)
Expand Down
6 changes: 3 additions & 3 deletions demo/myserver/views.py → testing/server/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
from django.shortcuts import get_object_or_404
from rest_framework import viewsets
from rest_framework.response import Response
from myserver.models import Application
from myserver.models import User
from server.models import Application
from server.models import User
from rest_framework_schemaform.serializers import JsonSchemaSerializer

from django.shortcuts import render_to_response


def index(request):
return render_to_response(
'myserver/index.html'
'server/index.html'
)


Expand Down
4 changes: 2 additions & 2 deletions demo/myserver/wsgi.py → testing/server/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for myserver project.
WSGI config for server project.

It exposes the WSGI callable as a module-level variable named ``application``.

Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myserver.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings")

application = get_wsgi_application()
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions demo/src/common/common.js → testing/src/common/common.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import angular from 'angular';
import Navbar from './navbar/navbar';
import Hero from './hero/hero';
import User from './user/user';

let commonModule = angular.module('app.common', [
Navbar.name,
Hero.name,
User.name
Hero.name
]);

export default commonModule;
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/webpack.config.js → testing/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var webpack = require('webpack');
module.exports = {
entry: './src/app.js',
output: {
path: path.join(__dirname, 'myserver/static/myserver'),
path: path.join(__dirname, 'server/static/server'),
filename: 'bundle.js'
},
module: {
Expand Down