mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-04 20:37:56 +00:00
test(aws): Ignore tests that check .aws files (#1775)
When running the AWS module it will parse the AWS config found in `~/.aws/config` to get the region. This means that tests that expect no region to be set will fail if there exists a default profile with a region set, which is probably true for most AWS users. To avoid this have set the AWS tests that depend on the non-existance of a `.aws/config` to be ignored.
This commit is contained in:
parent
b2a5c4a3e4
commit
c3cc6b174f
@ -124,6 +124,7 @@ mod tests {
|
||||
use std::io::{self, Write};
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn no_region_set() -> io::Result<()> {
|
||||
let actual = ModuleRenderer::new("aws").collect();
|
||||
let expected = None;
|
||||
@ -377,6 +378,7 @@ region = us-east-2
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn region_not_set_with_display_region() -> io::Result<()> {
|
||||
let actual = ModuleRenderer::new("aws")
|
||||
.config(toml::toml! {
|
||||
|
Loading…
Reference in New Issue
Block a user