diff --git a/newsfragments/1267.misc.rst b/newsfragments/1267.misc.rst new file mode 100644 index 00000000..4400d129 --- /dev/null +++ b/newsfragments/1267.misc.rst @@ -0,0 +1 @@ +Fix typos diff --git a/pytest_postgresql/executor.py b/pytest_postgresql/executor.py index 17cf0bd3..ef027739 100644 --- a/pytest_postgresql/executor.py +++ b/pytest_postgresql/executor.py @@ -204,7 +204,7 @@ def version(self) -> Any: version_string = subprocess.check_output([self.executable, "--version"]).decode("utf-8") except FileNotFoundError as ex: raise ExecutableMissingException( - f"Could not found {self.executable}. Is PostgreSQL server installed? " + f"Could not find {self.executable}. Is PostgreSQL server installed? " f"Alternatively pg_config installed might be from different " f"version that postgresql-server." ) from ex diff --git a/pytest_postgresql/factories/process.py b/pytest_postgresql/factories/process.py index b19acdbe..27fab57f 100644 --- a/pytest_postgresql/factories/process.py +++ b/pytest_postgresql/factories/process.py @@ -45,7 +45,7 @@ def _pg_exe(executable: str | None, config: PostgreSQLConfig) -> str: try: pg_bindir = subprocess.check_output(["pg_config", "--bindir"], universal_newlines=True).strip() except FileNotFoundError as ex: - raise ExecutableMissingException("Could not found pg_config executable. Is it in systenm $PATH?") from ex + raise ExecutableMissingException("Could not find pg_config executable. Is it in system $PATH?") from ex postgresql_ctl = os.path.join(pg_bindir, "pg_ctl") return postgresql_ctl