diff options
author | 2025-04-11 12:54:54 -0700 | |
---|---|---|
committer | 2025-04-11 12:57:13 -0700 | |
commit | c43c233c9b14e65d461405857c6e6c758cd9fb23 (patch) | |
tree | a2dc536661010dae8ed1e3dfc2a899476b4a2779 /tests/test_config.c | |
parent | 11f44a70736de47ec7eca82860ed6780d273749e (diff) | |
download | github-mirror-c43c233c9b14e65d461405857c6e6c758cd9fb23.tar.gz github-mirror-c43c233c9b14e65d461405857c6e6c758cd9fb23.tar.zst github-mirror-c43c233c9b14e65d461405857c6e6c758cd9fb23.zip |
Allow for multiple owners and tokens
Diffstat (limited to 'tests/test_config.c')
-rw-r--r-- | tests/test_config.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_config.c b/tests/test_config.c index 5e052a3..8d21d62 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -25,11 +25,14 @@ static void config_read_normal(void **state) const char *path = "../tests/fixtures/normal.ini"; struct config *cfg = config_read(path); assert_non_null(cfg); - assert_string_equal(cfg->endpoint, "https://api.github.com/graphql"); - assert_string_equal(cfg->token, "ghp_1234567890abcdef"); - assert_string_equal(cfg->user_agent, "user-agent"); - assert_string_equal(cfg->owner, "my-org"); assert_string_equal(cfg->git_base, "/srv/git"); + + assert_non_null(cfg->head); + assert_string_equal(cfg->head->endpoint, "https://api.github.com/graphql"); + assert_string_equal(cfg->head->token, "ghp_1234567890abcdef"); + assert_string_equal(cfg->head->user_agent, "user-agent"); + assert_string_equal(cfg->head->owner, "my-org"); + config_free(cfg); } int main(void) |