Added a basic configuration

This commit is contained in:
Martin Slot 2022-04-15 21:14:57 +02:00
parent 86d452d4da
commit 7286397078
2 changed files with 9 additions and 0 deletions

2
tests/Settings.toml Normal file
View File

@ -0,0 +1,2 @@
[database]
url = "connectionstring"

View File

@ -0,0 +1,7 @@
use kernel::configuration::Configuration;
#[test]
fn load_configuration() {
let settings = Configuration::load();
assert_eq!(settings.database.url, "connectionstring");
}