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

docs: Fix a few typos #1129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cassandra/cqlengine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def _raw_column_family_name(cls):

def _set_column_value(self, name, value):
"""Function to change a column value without changing the value manager states"""
self._values[name].value = value # internal assignement, skip the main setter
self._values[name].value = value # internal assignment, skip the main setter

def validate(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/advanced/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def use_cluster_with_graph(num_nodes):

class BasicGeometricUnitTestCase(BasicKeyspaceUnitTestCase):
"""
This base test class is used by all the geomteric tests. It contains class level teardown and setup
This base test class is used by all the geometric tests. It contains class level teardown and setup
methods. It also contains the test fixtures used by those tests
"""

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/advanced/graph/test_graph_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_consistency_passing(self):
cl_attrs = ('graph_read_consistency_level', 'graph_write_consistency_level')

# Iterates over the graph options and constructs an array containing
# The graph_options that correlate to graoh read and write consistency levels
# The graph_options that correlate to graph read and write consistency levels
graph_params = [a[2] for a in _graph_options if a[0] in cl_attrs]

s = self.session
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/advanced/test_spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_spark_analytic_query(self):
self.session.execute_graph(ClassicGraphFixtures.classic())
spark_master = find_spark_master(self.session)

# Run multipltle times to ensure we don't round robin
# Run multiple times to ensure we don't round robin
for i in range(3):
to_run = SimpleGraphStatement("g.V().count()")
rs = self.session.execute_graph(to_run, execution_profile=EXEC_PROFILE_GRAPH_ANALYTICS_DEFAULT)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cqlengine/connections/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def tearDown(self):
def test_connection_session_switch(self):
"""
Test to ensure that when the default keyspace is changed in a session and that session,
is set in the connection class, that the new defaul keyspace is honored.
is set in the connection class, that the new default keyspace is honored.

@since 3.1
@jira_ticket PYTHON-486
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cqlengine/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def test_keyspace(self):

@since 3.7
@jira_ticket PYTHON-613
@expected_result Keyspace segration is honored
@expected_result Keyspace segregation is honored

@test_category object_mapper
"""
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/standard/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,11 @@ def test_refresh_table_metadata(self):
"""
test for synchronously refreshing table metadata

test_refresh_table_metatadata tests that table metadata is refreshed when calling test_refresh_table_metatadata().
test_refresh_table_metadata tests that table metadata is refreshed when calling test_refresh_table_metadata().
It creates a second cluster object with schema_event_refresh_window=-1 such that schema refreshes are disabled
for schema change push events. It then alters the table, adding a new column, using the first cluster
object, and verifies that the table metadata has not changed in the second cluster object. Finally, it calls
test_refresh_table_metatadata() and verifies that the table metadata is updated in the second cluster object.
test_refresh_table_metadata() and verifies that the table metadata is updated in the second cluster object.

@since 2.6.0
@jira_ticket PYTHON-291
Expand Down Expand Up @@ -704,10 +704,10 @@ def test_refresh_metadata_for_mv(self):
test for synchronously refreshing materialized view metadata

test_refresh_table_metadata_for_materialized_views tests that materialized view metadata is refreshed when calling
test_refresh_table_metatadata() with the materialized view name as the table. It creates a second cluster object
test_refresh_table_metadata() with the materialized view name as the table. It creates a second cluster object
with schema_event_refresh_window=-1 such that schema refreshes are disabled for schema change push events.
It then creates a new materialized view , using the first cluster object, and verifies that the materialized view
metadata has not changed in the second cluster object. Finally, it calls test_refresh_table_metatadata() with the
metadata has not changed in the second cluster object. Finally, it calls test_refresh_table_metadata() with the
materialized view name as the table name, and verifies that the materialized view metadata is updated in the
second cluster object.

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/standard/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_duplicate_metrics_per_cluster(self):
session2 = cluster2.connect(self.ks_name, wait_for_all_pools=True)
session3 = cluster3.connect(self.ks_name, wait_for_all_pools=True)

# Basic validation that naming metrics doesn't impact their segration or accuracy
# Basic validation that naming metrics doesn't impact their segregation or accuracy
for i in range(10):
query = SimpleStatement("SELECT * FROM {0}.{0}".format(self.ks_name), consistency_level=ConsistencyLevel.ALL)
session2.execute(query)
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/standard/test_prepared_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def test_not_reprepare_invalid_statements(self):
def test_id_is_not_updated_conditional_v4(self):
"""
Test that verifies that the result_metadata and the
result_metadata_id are udpated correctly in conditional statements
result_metadata_id are updated correctly in conditional statements
in protocol V4

@since 3.13
Expand All @@ -561,7 +561,7 @@ def test_id_is_not_updated_conditional_v4(self):
def test_id_is_not_updated_conditional_v5(self):
"""
Test that verifies that the result_metadata and the
result_metadata_id are udpated correctly in conditional statements
result_metadata_id are updated correctly in conditional statements
in protocol V5
@since 3.13
@jira_ticket PYTHON-847
Expand All @@ -575,7 +575,7 @@ def test_id_is_not_updated_conditional_v5(self):
def test_id_is_not_updated_conditional_dsev1(self):
"""
Test that verifies that the result_metadata and the
result_metadata_id are udpated correctly in conditional statements
result_metadata_id are updated correctly in conditional statements
in protocol DSE V1

@since 3.13
Expand All @@ -590,7 +590,7 @@ def test_id_is_not_updated_conditional_dsev1(self):
def test_id_is_not_updated_conditional_dsev2(self):
"""
Test that verifies that the result_metadata and the
result_metadata_id are udpated correctly in conditional statements
result_metadata_id are updated correctly in conditional statements
in protocol DSE V2

@since 3.13
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def test_write_timeout(self):
query=None, consistency=ONE, write_type=write_type,
required_responses=1, received_responses=2, retry_num=0)
self.assertEqual(retry, RetryPolicy.IGNORE)
# retrhow if we can't be sure we have a replica
# rethrow if we can't be sure we have a replica
retry, consistency = policy.on_write_timeout(
query=None, consistency=ONE, write_type=write_type,
required_responses=1, received_responses=0, retry_num=0)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_resultset.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_index_list_mode(self):
# index access before iteration causes list to be materialized
self.assertEqual(rs[0], expected[0])

# resusable iteration
# reusable iteration
self.assertListEqual(list(rs), expected)
self.assertListEqual(list(rs), expected)

Expand All @@ -136,7 +136,7 @@ def test_index_list_mode(self):
# index access before iteration causes list to be materialized
self.assertEqual(rs[0], expected[0])
self.assertEqual(rs[9], expected[9])
# resusable iteration
# reusable iteration
self.assertListEqual(list(rs), expected)
self.assertListEqual(list(rs), expected)

Expand Down