Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Nov 30, 2017
1 parent f4e6ffd commit 01abd43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readthedocs/rtd_tests/tests/test_sync_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def test_update_stable_version(self):
self.assertEqual(version_stable.identifier, '1.0.0')

def test_update_inactive_stable_version(self):
"""
Test that stable doesn't get updated when it isn't active
"""
version_post_data = {
'branches': [
{
Expand Down Expand Up @@ -388,7 +391,7 @@ def test_update_inactive_stable_version(self):

version_stable = Version.objects.get(slug=STABLE)
self.assertFalse(version_stable.active)
self.assertEqual(version_stable.identifier, '1.0.0')
self.assertEqual(version_stable.identifier, '0.9')

def test_stable_version_tags_over_branches(self):
version_post_data = {
Expand Down

0 comments on commit 01abd43

Please sign in to comment.