generated from IWANABETHATGUY/tower-lsp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): inline python assertions
- Loading branch information
Showing
13 changed files
with
162 additions
and
67 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -9,4 +9,5 @@ dist/* | |
syntaxes/*.json | ||
.venv | ||
__pycache__ | ||
.*_cache | ||
.*_cache | ||
testing/requirements.txt |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
End-to-end testing for odoo-lsp. | ||
|
||
```shell | ||
pip install -U setuptools uv | ||
uv venv | ||
source .venv/bin/activate | ||
uv pip compile requirements.in > requirements.txt | ||
uv pip sync requirements.txt | ||
``` |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ class DerivedBar(models.Model): | |
_inherit = "bar" | ||
|
||
def test(self): | ||
self.env["bar"] | ||
pass |
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 |
---|---|---|
@@ -1,15 +1,32 @@ | ||
class Foo(Model): | ||
_name = "foo" | ||
|
||
def test(self): | ||
bar = fields.Char() | ||
|
||
def completions(self): | ||
self.env["bar"] | ||
# ^complete bar derived.bar foo foob | ||
|
||
def diagnostics(self): | ||
self.foo | ||
# ^diag Model `foo` has no field `foo` | ||
self.env["foo"].foo | ||
# ^diag Model `foo` has no field `foo` | ||
self.mapped("foo") | ||
# ^diag Model `foo` has no field `foo` | ||
self.env["fo"] | ||
# ^diag `fo` is not a valid model name | ||
|
||
|
||
class Foob(Model): | ||
_name = "foob" | ||
|
||
foo_id = fields.Many2one("foo") | ||
barb = fields.Char(related='foo_id.bar') | ||
# ^complete bar | ||
|
||
class NonModel: | ||
__slots__ = ("foo", "bar") | ||
|
||
def __init__(self): | ||
... |
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 @@ | ||
<odoo> | ||
<record id="foo.1" model="foo"> | ||
<field name="bar"/> | ||
<!-- ^complete bar --> | ||
</record> | ||
</odoo> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
deepdiff==7.0.1 | ||
pytest==8.2.0 | ||
pytest-lsp==0.4.1 | ||
pytest-timeout==2.3.1 | ||
tree-sitter==0.22.3 | ||
tree-sitter-python @ git+https://github.com/tree-sitter/tree-sitter-python@71778c2a472ed00a64abf4219544edbf8e4b86d7 ; platform_machine == 'arm64' and sys_platform == 'darwin' | ||
tree-sitter-python==0.21.0 |
This file was deleted.
Oops, something went wrong.