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

DM-43414: Update unit tests for changes in APDB API #200

Merged
merged 1 commit into from Apr 2, 2024

Conversation

andy-slac
Copy link
Contributor

APDB initialization is now done via special class method init_database, test cases in this package are updated to use new API.

@andy-slac andy-slac force-pushed the tickets/DM-43414 branch 3 times, most recently from 1893fae to bbb7794 Compare March 28, 2024 17:13
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question (whose relevance depends on the CLI handling on the dax_apdb PR).


Apdb.makeSchema(self.apdbConfig)
self.apdb = ApdbSql(config=self.apdbConfig)
self.apdbConfig = ApdbSql.init_database(db_url="sqlite:///" + self.db_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is init_database preferred to create_sql?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_sql and all stuff in lsst.dax.apdb.scripts is for CLI use (apbd-cli or any other CLI might need that). For regular Python code init_database is the main interface.

APDB initialization is now done via special class method `init_database`,
test cases in this package are updated to use new API.
@andy-slac andy-slac merged commit 3e42208 into main Apr 2, 2024
2 checks passed
@andy-slac andy-slac deleted the tickets/DM-43414 branch April 2, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants