Mark some OAuth tests as "only_community"
These tests won't be ran when imported from the corporate site.
@@ -7,6 +7,7 @@ from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
from django.test.utils import override_settings
+import pytest
from readthedocs.oauth.models import RemoteOrganization, RemoteRepository
from readthedocs.oauth.services import (
@@ -56,6 +57,7 @@ class GitHubOAuthTests(TestCase):
repo.ssh_url, 'ssh://git@github.com:testuser/testrepo.git')
self.assertEqual(repo.html_url, 'https://github.com/testuser/testrepo')
+ @pytest.mark.only_community
def test_make_project_fail(self):
repo_json = {
'name': '',
@@ -282,6 +284,7 @@ class BitbucketOAuthTests(TestCase):
repo.html_url,
'https://bitbucket.org/tutorials/tutorials.bitbucket.org')
+ @pytest.mark.only_community
def test_make_project_fail(self):
data = self.repo_response_data.copy()
data['is_private'] = True
@@ -450,6 +453,7 @@ class GitLabOAuthTests(TestCase):
self.assertTrue(repo.admin)
self.assertFalse(repo.private)
+ @pytest.mark.only_community
def test_make_private_project_fail(self):
repo = self.service.create_repository(
self.get_private_repo_data(), organization=self.org,
