Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler Test Data #110

Merged
merged 65 commits into from
Aug 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f604d35
use cast instead of type: ignore
meksor Jul 8, 2024
1ba7bed
add updateinfo migration
meksor Jul 12, 2024
06b80b2
rework tests to use fixtures and cli option
meksor Jul 12, 2024
aca7337
adjust core tests
meksor Jul 12, 2024
694543b
adjust data layer tests
meksor Jul 12, 2024
d51934f
adjust benchmark tests
meksor Aug 6, 2024
f14b214
remove create_filter_test_data
meksor Aug 6, 2024
2fead3b
remove old code/comments
meksor Aug 6, 2024
1d4020d
create deployment instead of trying to build docker img
meksor Aug 6, 2024
921ee8c
adjust pytest wf
meksor Aug 6, 2024
befc4a4
add medium test data
meksor Aug 12, 2024
c9db7de
split check_dsn and make_engine
meksor Aug 12, 2024
2374382
use medium test data where it makes sense
meksor Aug 12, 2024
03a8483
make postgres_dsn its own cli option
meksor Aug 12, 2024
323cb2e
run one backend per test run
meksor Aug 12, 2024
8fb67a6
Merge branch 'main' into enhancement/simpler-test-data
meksor Aug 12, 2024
0c67899
fix typo
meksor Aug 12, 2024
ba0fd99
remove copy disclaimer
meksor Aug 12, 2024
2022438
Merge branch 'main' into enhancement/simpler-test-data
meksor Aug 12, 2024
ccd0dc7
backends -> backend
meksor Aug 12, 2024
db47480
add type:ignore
meksor Aug 12, 2024
93ddb09
change url to localhost
meksor Aug 12, 2024
4d27515
fix conflict resolution mixstakes
meksor Aug 12, 2024
52956fc
fix more conf. res. mistakes
meksor Aug 12, 2024
b076194
try to start psotgres only when it is needed
meksor Aug 12, 2024
f6f7d08
fix gha syntax
meksor Aug 12, 2024
849d1bd
group tests into groups of two
meksor Aug 12, 2024
3810ab8
group default matrix as well
meksor Aug 12, 2024
c0f8414
all platforms at once seems to be most efficient
meksor Aug 12, 2024
06d1c4e
make iamc tests a little bit faster
meksor Aug 12, 2024
4a609d5
use explicit core import
meksor Aug 12, 2024
a9dd19d
remove run.set_as_default()
meksor Aug 12, 2024
face797
remove more set_as_default
meksor Aug 12, 2024
867be4f
remove runs.set_as_default_version from opt data layer tests
meksor Aug 12, 2024
5484801
remove extra comment
meksor Aug 12, 2024
13950a7
missed a correct conflict res.
meksor Aug 12, 2024
ea15e7b
fix broken psql tests
meksor Aug 12, 2024
2be9c41
remove extra comment
meksor Aug 12, 2024
b3d41ae
fix typo
meksor Aug 12, 2024
cb83db7
simplify conftest.py
meksor Aug 12, 2024
cbbe9e9
forgot sqlite_platform
meksor Aug 12, 2024
53f83f4
more performance refactoring
meksor Aug 12, 2024
75d27a7
reset is now called in conftest.py
meksor Aug 12, 2024
a6396ed
reset after the test instead of before?
meksor Aug 12, 2024
2126e53
rev reset after
meksor Aug 12, 2024
0895d46
split up reset()
meksor Aug 12, 2024
2ffea54
split reset for all fixtures
meksor Aug 12, 2024
9128792
refactor reset()
meksor Aug 12, 2024
0182c7f
more reset refactoring
meksor Aug 12, 2024
4f73122
avoid duplicate setup/td
meksor Aug 12, 2024
ecf94b7
try class scope for big td
meksor Aug 12, 2024
96fe9b8
switch close and td
meksor Aug 12, 2024
700911f
NullPool is the answer for test runs
meksor Aug 12, 2024
90e73cf
more efficient run filter test
meksor Aug 12, 2024
423b76f
touchups and docstrings
meksor Aug 13, 2024
effc539
we can only use class scope for immutable pltf. fixtures
meksor Aug 13, 2024
6ae4da8
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
460ed27
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
93c776d
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
7636130
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
4d9aae7
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
d68620c
Update tests/data/test_optimization_indexset.py
meksor Aug 13, 2024
9a9bbc5
Update tests/data/test_optimization_table.py
meksor Aug 13, 2024
183da6c
Update tests/data/test_optimization_table.py
meksor Aug 13, 2024
4baae99
Update tests/data/test_optimization_table.py
meksor Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/data/test_optimization_table.py
Co-authored-by: Fridolin Glatter <[email protected]>
  • Loading branch information
meksor and glatterf42 authored Aug 13, 2024
commit 9a9bbc5e2fe41ec23ed035295f1d20873d8d698a
2 changes: 1 addition & 1 deletion tests/data/test_optimization_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_create_table(self, platform: ixmp4.Platform):
platform=platform, run_id=run.id
)
table = platform.backend.optimization.tables.create(
run_id=run.id, name="Table", constrained_to_indexsets=["Indexset 1"]
run_id=run.id, name="Table", constrained_to_indexsets=[indexset_1.name]
)

assert table.run__id == run.id
Expand Down
Loading