Skip to content

Commit

Permalink
Avoid outdated resource extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pekkaklarck committed Jun 11, 2023
1 parent cbe0a9b commit cf3ec9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions utest/running/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ def run_and_check_pass(self, suite):
def test_create(self):
suite = TestSuite(name='Suite')
suite.resource.imports.create('Library', 'OperatingSystem')
suite.resource.imports.create('RESOURCE', 'test_resource.txt')
suite.resource.imports.create('RESOURCE', 'test.resource')
suite.resource.imports.create(type='LibRary', name='String')
test = suite.tests.create(name='Test')
test.body.create_keyword('Directory Should Exist', args=['.'])
test.body.create_keyword('My Test Keyword')
test.body.create_keyword('Convert To Lower Case', args=['ROBOT'])
self.run_and_check_pass(suite)


def test_library(self):
suite = TestSuite(name='Suite')
suite.resource.imports.library('OperatingSystem')
Expand All @@ -60,7 +59,7 @@ def test_library(self):

def test_resource(self):
suite = TestSuite(name='Suite')
suite.resource.imports.resource('test_resource.txt')
suite.resource.imports.resource('test.resource')
suite.tests.create(name='Test').body.create_keyword('My Test Keyword')
assert_equal(suite.tests[0].body[0].name, 'My Test Keyword')
self.run_and_check_pass(suite)
Expand Down

0 comments on commit cf3ec9b

Please sign in to comment.