Skip to content

Commit

Permalink
added tests dir for examples and updated base command package name
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Oct 18, 2023
1 parent 3e4a406 commit dc01e63
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/create_table_v2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand


class CreateTableV2(BaseCommand, ConnectorCommand):

Expand Down
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/delete_values_v2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand


class DeleteValuesV2(BaseCommand, ConnectorCommand):

Expand Down
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/do_sql_v2.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from psycopg2.extensions import register_adapter # type: ignore
from psycopg2.extras import Json # type: ignore
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand

register_adapter(dict, Json)

class DoSQL(BaseCommand, ConnectorCommand):
Expand Down
5 changes: 3 additions & 2 deletions src/connector_postgres_v2/commands/drop_table_v2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand

class DropTableV2(BaseCommand, ConnectorCommand):

class DropTableV2(ConnectorCommand, BaseCommand):

def __init__(self,
database_connection_str: str,
Expand Down
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/insert_values_v2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand


class InsertValuesV2(BaseCommand, ConnectorCommand):

Expand Down
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/select_values_v2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand


class SelectValuesV2(BaseCommand, ConnectorCommand):

Expand Down
3 changes: 2 additions & 1 deletion src/connector_postgres_v2/commands/update_values_v2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

from typing import Any

from connector_postgresql.base_command import BaseCommand
from spiffworkflow_connector_command.command_interface import ConnectorCommand
from spiffworkflow_connector_command.command_interface import ConnectorProxyResponseDict

from connector_postgres_v2.base_command import BaseCommand


class UpdateValuesV2(BaseCommand, ConnectorCommand):

Expand Down
3 changes: 3 additions & 0 deletions tests/connector_postgres_v2/unit/test_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class TestSample:
def test_true(self) -> None:
assert True

0 comments on commit dc01e63

Please sign in to comment.