Skip to content

Commit 5d1f8c8

Browse files
authored
Merge pull request #468 from GoogleCloudPlatform/nox-lint-per-sample
2 parents 7fa979f + 94690fe commit 5d1f8c8

File tree

96 files changed

+224
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+224
-116
lines changed

appengine/flexible/endpoints/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
import json
1717
import os
1818

19-
import main
2019
import pytest
2120

21+
import main
22+
2223

2324
@pytest.fixture
2425
def client(monkeypatch):

appengine/flexible/extending_runtime/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
import os
1616

17-
import main
1817
import pytest
1918

19+
import main
20+
2021

2122
@pytest.mark.skipif(
2223
not os.path.exists('/usr/games/fortune'),

appengine/flexible/extending_runtime_compat/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
import os
1616

17-
import main
1817
import pytest
1918

19+
import main
20+
2021

2122
@pytest.mark.skipif(
2223
not os.path.exists('/usr/games/fortune'),

appengine/flexible/memcache/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import pytest
1716

17+
import main
18+
1819

1920
def test_index():
2021
try:

appengine/flexible/pubsub/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
import json
1717
import os
1818

19-
import main
2019
import pytest
2120

21+
import main
22+
2223

2324
@pytest.fixture
2425
def client():

appengine/flexible/redis/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import pytest
1716

17+
import main
18+
1819

1920
def test_index():
2021
try:

appengine/flexible/storage/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import pytest
1716
import requests
1817
from six import BytesIO
1918

19+
import main
20+
2021

2122
@pytest.fixture
2223
def client():

appengine/standard/__init__.py

Whitespace-only changes.

appengine/standard/app_identity/asserting/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import mock
1716
import webtest
1817

18+
import main
19+
1920

2021
def test_app(testbed):
2122
app = webtest.TestApp(main.app)

appengine/standard/app_identity/incoming/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed):
2021
app = webtest.TestApp(main.app)

appengine/standard/app_identity/signing/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed):
2021
app = webtest.TestApp(main.app)

appengine/standard/appstats/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed):
2021
app = webtest.TestApp(main.app)

appengine/standard/background/main_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
16-
1715
from mock import patch
1816
import pytest
1917
import webtest
2018

19+
import main
20+
2121

2222
@pytest.fixture
2323
def app(cloud_config, testbed):

appengine/standard/bigquery/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
import re
1616

1717
from googleapiclient.http import HttpMock
18-
import main
1918
import mock
2019
import pytest
2120
import webtest
2221

22+
import main
23+
2324

2425
@pytest.fixture
2526
def app(cloud_config, testbed):

appengine/standard/blobstore/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed, login):
2021
app = webtest.TestApp(main.app)

appengine/standard/cloudsql/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
import os
1616
import re
1717

18-
import main
1918
import pytest
2019
import webtest
2120

21+
import main
22+
2223

2324
@pytest.mark.skipif(
2425
not os.path.exists('/var/run/mysqld/mysqld.sock'),

appengine/standard/endpoints-frameworks-v2/echo/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# limitations under the License.
1414

1515
import endpoints
16-
import main
1716
import mock
1817
from protorpc import message_types
1918
import pytest
2019

20+
import main
21+
2122

2223
def test_echo():
2324
api = main.EchoApi()

appengine/standard/endpoints-frameworks-v2/quickstart/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import mock
1716
from protorpc import message_types
1817

18+
import main
19+
1920

2021
def test_list_greetings(testbed):
2122
api = main.GreetingApi()

appengine/standard/endpoints/backend/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import mock
1716
from protorpc import message_types
1817

18+
import main
19+
1920

2021
def test_list_greetings(testbed):
2122
api = main.GreetingApi()

appengine/standard/hello_world/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_get():
2021
app = webtest.TestApp(main.app)

appengine/standard/images/api/blobstore_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import blobstore
1615
import mock
1716
import pytest
1817
import webtest
1918

19+
import blobstore
20+
2021

2122
@pytest.fixture
2223
def app(testbed):

appengine/standard/images/api/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import mock
1716
import pytest
1817
import webtest
1918

19+
import main
20+
2021

2122
@pytest.fixture
2223
def app(testbed):

appengine/standard/images/guestbook/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import mock
1716
import pytest
1817
import webtest
1918

19+
import main
20+
2021

2122
@pytest.fixture
2223
def app(testbed):

appengine/standard/logging/reading_logs/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed):
2021
app = webtest.TestApp(main.app)

appengine/standard/logging/writing_logs/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_app(testbed):
2021
app = webtest.TestApp(main.app)

appengine/standard/mail/attachment_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import attachment
1615
import webtest
1716

17+
import attachment
18+
1819

1920
def test_send_mail(testbed):
2021
testbed.init_mail_stub()

appengine/standard/mail/header_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import header
1615
import webtest
1716

17+
import header
18+
1819

1920
def test_send_mail(testbed):
2021
testbed.init_mail_stub()

appengine/standard/mail/send_mail_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import send_mail
1615
import webtest
1716

17+
import send_mail
18+
1819

1920
def test_send_mail(testbed):
2021
testbed.init_mail_stub()

appengine/standard/mail/send_message_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import send_message
1615
import webtest
1716

17+
import send_message
18+
1819

1920
def test_send_message(testbed):
2021
testbed.init_mail_stub()

appengine/standard/mail/user_signup_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import user_signup
1615
import webtest
1716

17+
import user_signup
18+
1819

1920
def test_user_signup(testbed):
2021
testbed.init_mail_stub()

appengine/standard/mailgun/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
from googleapiclient.http import HttpMockSequence
1616
import httplib2
17-
import main
1817
import mock
1918
import pytest
2019
import webtest
2120

21+
import main
22+
2223

2324
class HttpMockSequenceWithCredentials(HttpMockSequence):
2425
def add_credentials(self, *args):

appengine/standard/memcache/best_practices/batch/batch_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import batch
16-
1715
import pytest
1816
import webtest
1917

18+
import batch
19+
2020

2121
@pytest.fixture
2222
def app(testbed):

0 commit comments

Comments
 (0)