Skip to content

Commit

Permalink
Updated tox tests and testsets to python 3.6, 3.7 and django 1.11, 2.…
Browse files Browse the repository at this point in the history
…1, 2.2
  • Loading branch information
mmarcos committed Apr 30, 2019
1 parent b1c04b5 commit 8e69e17
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ Instead of being a ready-to-use CMS, Arctic is a framework that facilitates the

## Compatibility

* Python 2.7, 3.5, 3.6
* Django 1.10, 1.11, 2.0
* Python 3.6, 3.7
* Django 1.11, 2.1, 2.2
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Instead of being a ready-to-use CMS, Arctic is a framework that facilitates the

## Compatibility

* Python 2.7, 3.5, 3.6
* Django 1.10, 1.11, 2.0
* Python 3.6, 3.7
* Django 1.11, 2.1, 2.2


## Features
Expand Down
6 changes: 3 additions & 3 deletions tests/test_generics/test_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def test_no_items(self, admin_client):

self._assert_list_items_len(response, 0)

def test_one_tool_link(self, admin_client):
def test_two_tool_links(self, admin_client):
"""
Single tool link display
"""
response = self._request(admin_client)

assert 'tool_links' in response.context_data
assert len(response.context_data['tool_links']) == 1
assert len(response.context_data['tool_links']) == 2

def test_multiple_tool_links(self, admin_client):
"""
Expand All @@ -68,7 +68,7 @@ def test_multiple_tool_links(self, admin_client):
response = self._request(admin_client)

assert 'tool_links' in response.context_data
assert len(response.context_data['tool_links']) == 2
assert len(response.context_data['tool_links']) == 3

def test_no_tool_links(self, admin_client):
"""
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tox]
envlist =
py{27,35,36}-django111
py{35,36}-django{200,201}
py{36,37}-django{111,201,202}

[travis]
python =
3.6: py36
3.5: py35
2.7: py27
3.7: py37

[testenv]
deps =
--no-use-pep517
-efile://{toxinidir}
-rrequirements/test.txt
django202: Django >= 2.2, < 2.3
django201: Django >= 2.1, < 2.2
django200: Django >= 2.0, < 2.1
django111: Django >= 1.11, < 1.12
commands =
py36: pip install black
Expand Down

0 comments on commit 8e69e17

Please sign in to comment.