-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from gauge-sh/e2e-tests-2-6-25
Add a couple E2E on example directory using many features
- Loading branch information
Showing
32 changed files
with
249 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
4 changes: 4 additions & 0 deletions
4
python/tests/example/many_features/other_src_root/module1/api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# tach-ignore | ||
from module1.submodule1.api import Api | ||
|
||
from module1.submodule1.api import OtherApi |
Empty file.
2 changes: 2 additions & 0 deletions
2
python/tests/example/many_features/other_src_root/module4/service.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# tach-ignore | ||
from module2.service import Module2Service |
Empty file.
7 changes: 7 additions & 0 deletions
7
python/tests/example/many_features/other_src_root/module5/tach.domain.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[root] | ||
depends_on = [] | ||
layer = "mid" | ||
|
||
[[interfaces]] | ||
expose = [] | ||
from = ["<domain_root>"] |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
python/tests/example/many_features/real_src/django_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
OTHER_FIELD = "value" | ||
|
||
INSTALLED_APPS = [ | ||
"module1", | ||
"module3", | ||
"module5", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# tach-ignore | ||
|
||
from external import something |
5 changes: 5 additions & 0 deletions
5
python/tests/example/many_features/real_src/module1/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .api import MyApi | ||
|
||
from module3 import content | ||
|
||
from module3 import anything |
6 changes: 6 additions & 0 deletions
6
python/tests/example/many_features/real_src/module1/controller.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from module5 import something | ||
|
||
|
||
class MyModel: | ||
field = ForeignKey("module3.content") | ||
field2 = ForeignKey("module3.anything") |
Empty file.
Empty file.
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions
13
python/tests/example/many_features/real_src/module1/tach.domain.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[root] | ||
depends_on = ["api", "//module5"] | ||
layer = "mid" | ||
|
||
[[modules]] | ||
path = "api" | ||
depends_on = ["submodule1"] | ||
layer = "mid" | ||
|
||
[[modules]] | ||
path = "submodule1" | ||
depends_on = [] | ||
layer = "mid" |
4 changes: 4 additions & 0 deletions
4
python/tests/example/many_features/real_src/module2/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import module3 | ||
import module4 | ||
import module1 | ||
import module1.submodule1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import outer_module |
3 changes: 3 additions & 0 deletions
3
python/tests/example/many_features/real_src/module3/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import module1 | ||
|
||
from .submodule1.api import Api |
Empty file.
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions
13
python/tests/example/many_features/real_src/module3/tach.domain.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[root] | ||
depends_on = [] | ||
layer = "low" | ||
|
||
[[modules]] | ||
path = "submodule1" | ||
depends_on = [] | ||
layer = "low" | ||
utility = true | ||
|
||
[[interfaces]] | ||
expose = ["content"] | ||
from = ["<domain_root>"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import module2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invalidsyntax... |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
exclude = ["src", "**/tests"] | ||
exact = true | ||
forbid_circular_dependencies = true | ||
|
||
source_roots = [ | ||
"real_src", | ||
"other_src_root" | ||
] | ||
|
||
layers = [ | ||
"high", | ||
"mid", | ||
"low", | ||
"lowest", | ||
"hightest" | ||
] | ||
|
||
[[modules]] | ||
path = "module4" | ||
depends_on = [] | ||
layer = "hightest" | ||
|
||
[[modules]] | ||
path = "module2" | ||
depends_on = [] | ||
layer = "high" | ||
|
||
[[modules]] | ||
path = "outer_module" | ||
unchecked = true | ||
|
||
[rules] | ||
unused_ignore_directives = "error" | ||
require_ignore_directive_reasons = "warn" | ||
|
||
[plugins.django] | ||
settings_module = "django_settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters