Skip to content

Commit

Permalink
chore: sample tests lint (#90)
Browse files Browse the repository at this point in the history
* chore: sample tests lint

* lint

* lnt

* lint
  • Loading branch information
dizcology authored Nov 30, 2020
1 parent 860d12e commit 77956b2
Show file tree
Hide file tree
Showing 74 changed files with 212 additions and 265 deletions.
12 changes: 5 additions & 7 deletions samples/snippets/cancel_training_pipeline_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_training_pipeline_sample
import cancel_training_pipeline_sample
import create_training_pipeline_sample
import delete_training_pipeline_sample
import get_training_pipeline_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_text_classification_sample
import cancel_batch_prediction_job_sample
import create_batch_prediction_job_text_classification_sample
import delete_batch_prediction_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_text_entity_extraction_sample
import cancel_batch_prediction_job_sample
import create_batch_prediction_job_text_entity_extraction_sample
import delete_batch_prediction_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_text_sentiment_analysis_sample
import cancel_batch_prediction_job_sample
import create_batch_prediction_job_text_sentiment_analysis_sample
import delete_batch_prediction_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import uuid
import pytest
import os
import uuid

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_video_action_recognition_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_video_classification_sample
import cancel_batch_prediction_job_sample
import create_batch_prediction_job_video_classification_sample
import delete_batch_prediction_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from uuid import uuid4
import pytest
import os
from uuid import uuid4

import helpers
from google.cloud import aiplatform
import pytest

import create_batch_prediction_job_video_object_tracking_sample
import cancel_batch_prediction_job_sample
import create_batch_prediction_job_video_object_tracking_sample
import delete_batch_prediction_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
9 changes: 4 additions & 5 deletions samples/snippets/create_custom_job_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@
# limitations under the License.


import pytest
import uuid
import os
import uuid

import helpers
from google.cloud import aiplatform
import pytest

import cancel_custom_job_sample
import create_custom_job_sample
import delete_custom_job_sample

from google.cloud import aiplatform
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
CONTAINER_IMAGE_URI = "gcr.io/ucaip-test/ucaip-training-test:latest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
import uuid
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_active_learning_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
import uuid
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_image_segmentation_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
from uuid import uuid4
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_images_sample
import cancel_data_labeling_job_sample
import delete_data_labeling_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
8 changes: 3 additions & 5 deletions samples/snippets/create_data_labeling_job_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
from uuid import uuid4
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_sample
import cancel_data_labeling_job_sample
import delete_data_labeling_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
import uuid
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_specialist_pool_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
import os
from uuid import uuid4
from google.cloud import aiplatform

import helpers
from google.cloud import aiplatform
import pytest

import create_data_labeling_job_video_sample
import cancel_data_labeling_job_sample
import delete_data_labeling_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
6 changes: 2 additions & 4 deletions samples/snippets/create_dataset_image_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from uuid import uuid4

import pytest
import os

import helpers

import create_dataset_image_sample
import delete_dataset_sample

import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")

Expand Down
6 changes: 2 additions & 4 deletions samples/snippets/create_dataset_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from uuid import uuid4

import pytest
import os

import helpers

import create_dataset_sample
import delete_dataset_sample

import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
IMAGE_METADATA_SCHEMA_URI = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from uuid import uuid4

import pytest
import os

import helpers

import create_dataset_tabular_bigquery_sample
import delete_dataset_sample

import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
BIGQUERY_URI = "bq://ucaip-sample-tests.table_test.all_bq_types"
Expand Down
6 changes: 2 additions & 4 deletions samples/snippets/create_dataset_tabular_gcs_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from uuid import uuid4

import pytest
import os

import helpers

import create_dataset_tabular_gcs_sample
import delete_dataset_sample

import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
GCS_URI = "gs://ucaip-sample-resources/iris_1000.csv"
Expand Down
6 changes: 2 additions & 4 deletions samples/snippets/create_dataset_video_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from uuid import uuid4

import pytest
import os

import helpers

import create_dataset_video_sample
import delete_dataset_sample

import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
VIDEO_METADATA_SCHEMA_URI = (
Expand Down
Loading

0 comments on commit 77956b2

Please sign in to comment.