Skip to content

Commit

Permalink
add test feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Oct 6, 2019
1 parent 024fa63 commit 68606f1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions app/tests/functional/controllers/web/test_feed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2019 Silverbackhq
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Third Party Library
from django.test import TestCase
from django.shortcuts import reverse

# Local Library
from app.tests.testing_base import TestingBase


class TestFeed(TestCase):

def setUp(self):
tb = TestingBase()
tb.uninstall()
tb.install({
"app_name": "Silverback",
"app_email": "[email protected]",
"app_url": "http://silverback.com",
"admin_username": "admin",
"admin_email": "[email protected]",
"admin_password": "$h12345678H$"
})

def tearDown(self):
tb = TestingBase()
tb.uninstall()

def test_get_atom(self):
response = self.client.get(reverse("app.web.history_atom"))
self.assertEqual(response.status_code, 200)

def test_get_rss(self):
response = self.client.get(reverse("app.web.history_rss"))
self.assertEqual(response.status_code, 200)

0 comments on commit 68606f1

Please sign in to comment.