gibson-cli 0.6.1__py3-none-any.whl → 0.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gibson/api/BaseApi.py +2 -1
- gibson/api/Cli.py +9 -2
- gibson/command/Build.py +60 -8
- gibson/command/Help.py +0 -12
- gibson/command/Question.py +4 -7
- gibson/command/code/Code.py +42 -12
- gibson/command/code/Entity.py +25 -7
- gibson/command/code/Model.py +1 -1
- gibson/command/code/Schema.py +1 -1
- gibson/command/code/Test.py +35 -0
- gibson/command/code/Tests.py +12 -21
- gibson/command/importer/Import.py +83 -11
- gibson/command/importer/OpenApi.py +4 -9
- gibson/command/new/Module.py +1 -1
- gibson/command/new/New.py +3 -3
- gibson/command/new/Project.py +2 -2
- gibson/command/rewrite/Rewrite.py +9 -14
- gibson/command/tests/test_command_Conf.py +1 -0
- gibson/conf/Project.py +1 -0
- gibson/core/Configuration.py +21 -58
- gibson/core/Conversation.py +25 -7
- gibson/data/bash-completion.tmpl +3 -4
- gibson/data/postgresql/default-ref-table.tmpl +4 -0
- gibson/data/postgresql/default-table.tmpl +5 -0
- gibson/db/TableExceptions.py +3 -0
- gibson/db/tests/test_db_TableExceptions.py +4 -0
- gibson/services/code/context/schema/EntityKeys.py +3 -3
- gibson/services/code/context/schema/tests/test_code_context_schema_EntityKeys.py +3 -3
- gibson/structure/Entity.py +12 -109
- gibson/structure/mysql/Entity.py +117 -0
- gibson/structure/{constraints → mysql/constraints}/ReferenceConstraint.py +6 -2
- gibson/structure/{keys → mysql/keys}/ForeignKey.py +9 -5
- gibson/structure/{keys → mysql/keys}/Index.py +7 -3
- gibson/structure/{keys/tests/test_ForeignKey.py → mysql/keys/tests/test_structure_mysql_keys_ForeignKey.py} +16 -8
- gibson/structure/{keys/tests/test_Index.py → mysql/keys/tests/test_structure_mysql_keys_Index.py} +7 -3
- gibson/structure/{keys/tests/test_IndexAttribute.py → mysql/keys/tests/test_structure_mysql_keys_IndexAttribute.py} +1 -1
- gibson/structure/mysql/testing.py +231 -0
- gibson/structure/{tests/test_Entity.py → mysql/tests/test_structure_mysql_Entity.py} +34 -20
- gibson/structure/postgresql/Entity.py +108 -0
- gibson/structure/postgresql/References.py +61 -0
- gibson/structure/postgresql/table/ForeignKey.py +28 -0
- gibson/structure/postgresql/table/tests/test_structure_postgresql_table_ForeignKey.py +44 -0
- gibson/structure/{testing.py → postgresql/testing.py} +45 -82
- gibson/structure/postgresql/tests/test_structure_postgresql_Entity.py +82 -0
- gibson/structure/tests/test_structure_Entity.py +22 -0
- {gibson_cli-0.6.1.dist-info → gibson_cli-0.7.1.dist-info}/METADATA +25 -27
- {gibson_cli-0.6.1.dist-info → gibson_cli-0.7.1.dist-info}/RECORD +57 -47
- {gibson_cli-0.6.1.dist-info → gibson_cli-0.7.1.dist-info}/WHEEL +1 -1
- gibson/command/rewrite/Tests.py +0 -26
- /gibson/command/{rewrite → code}/Api.py +0 -0
- /gibson/command/{rewrite → code}/Base.py +0 -0
- /gibson/command/{rewrite → code}/Models.py +0 -0
- /gibson/command/{rewrite → code}/Schemas.py +0 -0
- /gibson/data/{default-ref-table.tmpl → mysql/default-ref-table.tmpl} +0 -0
- /gibson/data/{default-table.tmpl → mysql/default-table.tmpl} +0 -0
- /gibson/structure/{keys → mysql/keys}/IndexAttribute.py +0 -0
- {gibson_cli-0.6.1.dist-info → gibson_cli-0.7.1.dist-info}/entry_points.txt +0 -0
- {gibson_cli-0.6.1.dist-info → gibson_cli-0.7.1.dist-info}/top_level.txt +0 -0
gibson/command/rewrite/Tests.py
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
from gibson.api.Cli import Cli
|
2
|
-
from gibson.command.BaseCommand import BaseCommand
|
3
|
-
from gibson.core.TimeKeeper import TimeKeeper
|
4
|
-
from gibson.dev.Dev import Dev
|
5
|
-
|
6
|
-
|
7
|
-
class Tests(BaseCommand):
|
8
|
-
def execute(self):
|
9
|
-
entities = []
|
10
|
-
if self.memory.entities is not None:
|
11
|
-
for entity in self.memory.entities:
|
12
|
-
entities.append(entity["name"])
|
13
|
-
|
14
|
-
time_keeper = TimeKeeper()
|
15
|
-
|
16
|
-
cli = Cli(self.configuration)
|
17
|
-
response = cli.code_testing(entities)
|
18
|
-
|
19
|
-
for entry in response["code"]:
|
20
|
-
Dev(self.configuration).tests(entry["entity"]["name"], entry["definition"])
|
21
|
-
|
22
|
-
if self.conversation.muted() is False:
|
23
|
-
print(entry["definition"])
|
24
|
-
|
25
|
-
if self.conversation.muted() is False:
|
26
|
-
time_keeper.display()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|