Skip to content

Commit

Permalink
pacify flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Jan 17, 2025
1 parent bc1ccef commit 1e225fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion store/neurostore/resources/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import request, jsonify
from flask import request
from neurostore.models.data import (
Pipeline,
PipelineConfig,
Expand Down
10 changes: 1 addition & 9 deletions store/neurostore/tests/api/test_pipeline_resources.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import pytest
from flask import url_for
from neurostore.models.data import (
Pipeline,
PipelineConfig,
PipelineRun,
PipelineRunResult,
PipelineRunResultVote,
BaseStudy,
)
from neurostore.schemas.pipeline import (
PipelineSchema,
PipelineConfigSchema,
PipelineRunSchema,
PipelineRunResultSchema,
PipelineRunResultVoteSchema,
)

from neurostore.database import db


Expand Down
25 changes: 7 additions & 18 deletions store/neurostore/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

from ..schemas import StudySchema, StudysetSchema, StudysetSnapshot
from ..models import Study, Studyset

from neurostore.schemas.pipeline import (
PipelineSchema,
PipelineConfigSchema,
PipelineRunSchema,
PipelineRunResultSchema,
PipelineRunResultVoteSchema,
)
# Things I the schemas to do:
# 1. Cloning: I need a deep copy of the object, with new versions of all the sub-objects
# a. cloning a study, create new everything
Expand Down Expand Up @@ -42,23 +48,6 @@ def test_compare_dataset_with_snapshot(ingest_neurosynth):
assert marshmallow_ss == quick_ss


import pytest
from neurostore.schemas.pipeline import (
PipelineSchema,
PipelineConfigSchema,
PipelineRunSchema,
PipelineRunResultSchema,
PipelineRunResultVoteSchema,
)
from neurostore.models.data import (
Pipeline,
PipelineConfig,
PipelineRun,
PipelineRunResult,
PipelineRunResultVote,
)


def test_PipelineSchema():
payload = {
"name": "Test Pipeline",
Expand Down

0 comments on commit 1e225fb

Please sign in to comment.