Skip to content

Commit

Permalink
Remove default process references
Browse files Browse the repository at this point in the history
  • Loading branch information
teobucci committed Apr 7, 2024
1 parent e15e49f commit a2f73f4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 70 deletions.
4 changes: 2 additions & 2 deletions docs/source/processes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Processes
:local:
:depth: 1

Say Hello
Causal Analysis
---------

.. autoprocess:: hawk.processes.wps_say_hello.SayHello
.. autoprocess:: hawk.processes.wps_causal.Causal
:docstring:
:skiplines: 1
2 changes: 0 additions & 2 deletions hawk/processes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from .wps_causal import Causal
from .wps_say_hello import SayHello

processes = [
SayHello(),
Causal(),
]
4 changes: 1 addition & 3 deletions hawk/processes/wps_causal.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@


class Causal(Process):
"""A nice process saying 'hello'."""

def __init__(self):
inputs = [
ComplexInput(
Expand Down Expand Up @@ -189,7 +187,7 @@ def __init__(self):
self._handler,
identifier="causal",
title="Causal Analysis",
abstract="Given train and test tabular data, performs a causal analysis with multiple configurations and outputs plots and Python dictionaries.",
abstract="Performs a causal analysis with multiple configurations, returning outputs plots and pkl file.",
keywords=["causal", "analysis"],
metadata=[
Metadata("PyWPS", "https://pywps.org/"),
Expand Down
47 changes: 0 additions & 47 deletions hawk/processes/wps_say_hello.py

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion tests/test_wps_caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ def test_wps_caps():
'/ows:Identifier')
assert sorted(names.split()) == [
'causal',
'hello',
]
16 changes: 16 additions & 0 deletions tests/test_wps_causal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from pywps import Service # noqa: F401
from pywps.tests import assert_response_success, client_for # noqa: F401

from hawk.processes.wps_causal import Causal # noqa: F401

from .common import get_output # noqa: F401


# def test_wps_causal():
# client = client_for(Service(processes=[Causal()]))
# datainputs = "name=LovelySugarBird"
# resp = client.get(
# "?service=WPS&request=Execute&version=1.0.0&identifier=causal&datainputs={}".format(
# datainputs))
# assert_response_success(resp)
# assert get_output(resp.xml) == {'output': "Hello LovelySugarBird"}
15 changes: 0 additions & 15 deletions tests/test_wps_hello.py

This file was deleted.

0 comments on commit a2f73f4

Please sign in to comment.