Best Python code snippet using localstack_python
urls.py
Source:urls.py
1from autotest.frontend import settings, urls_common2from autotest.frontend.afe import resources3from autotest.frontend.afe.feeds import feed4from django.conf.urls import defaults5feeds = {6 'jobs': feed.JobFeed7}8urlpatterns, debug_patterns = (9 urls_common.generate_patterns('autotest.frontend.afe', 'AfeClient'))10resource_patterns = defaults.patterns(11 '',12 (r'^/?$', resources.ResourceDirectory.dispatch_request),13 (r'^atomic_group_classes/?$',14 resources.AtomicGroupClassCollection.dispatch_request),15 (r'^atomic_group_classes/(?P<ag_name>.+?)/?$',16 resources.AtomicGroupClass.dispatch_request),17 (r'^atomic_taggings/?$',18 resources.AtomicLabelTaggingCollection.dispatch_request),19 (r'^atomic_taggings/(?P<ag_name>.+?),(?P<label_name>.+?)/?$',20 resources.AtomicLabelTagging.dispatch_request),21 (r'^labels/?$', resources.LabelCollection.dispatch_request),22 (r'^labels/(?P<label_name>.+?)/?$', resources.Label.dispatch_request),23 (r'^users/?$', resources.UserCollection.dispatch_request),24 (r'^users/(?P<username>[@\w]+)/?$', resources.User.dispatch_request),25 (r'^user_acls/?$',26 resources.UserAclMembershipCollection.dispatch_request),27 (r'^user_acls/(?P<username>.+?),(?P<acl_name>.+?)/?$',28 resources.UserAclMembership.dispatch_request),29 (r'^acls/?$', resources.AclCollection.dispatch_request),30 (r'^acls/(?P<acl_name>.+?)/?$', resources.Acl.dispatch_request),31 (r'^hosts/?$', resources.HostCollection.dispatch_request),32 (r'^hosts/(?P<hostname>.+?)/?$', resources.Host.dispatch_request),33 (r'^labelings/?$', resources.HostLabelingCollection.dispatch_request),34 (r'^labelings/(?P<hostname>.+?),(?P<label_name>.+?)/?$',35 resources.HostLabeling.dispatch_request),36 (r'^host_acls/?$',37 resources.HostAclMembershipCollection.dispatch_request),38 (r'^host_acls/(?P<hostname>.+?),(?P<acl_name>.+?)/?$',39 resources.HostAclMembership.dispatch_request),40 (r'^tests/?$', resources.TestCollection.dispatch_request),41 (r'^tests/(?P<test_name>.+?)/?$', resources.Test.dispatch_request),42 (r'^test_dependencies/?$',43 resources.TestDependencyCollection.dispatch_request),44 (r'^test_dependencies/(?P<test_name>.+?),(?P<label_name>.+?)/?$',45 resources.TestDependency.dispatch_request),46 (r'^execution_info/?$', resources.ExecutionInfo.dispatch_request),47 (r'^queue_entries_request/?$',48 resources.QueueEntriesRequest.dispatch_request),49 (r'^jobs/?$', resources.JobCollection.dispatch_request),50 (r'^jobs/(?P<job_id>\d+)/?$', resources.Job.dispatch_request),51 (r'^queue_entries/?$', resources.QueueEntryCollection.dispatch_request),52 (r'^queue_entries/(?P<queue_entry_id>\d+?)/?$',53 resources.QueueEntry.dispatch_request),54 (r'^health_tasks/?$', resources.HealthTaskCollection.dispatch_request),55 (r'^health_tasks/(?P<task_id>\d+)/?$',56 resources.HealthTask.dispatch_request),57)58urlpatterns += defaults.patterns(59 '', (r'^resources/', defaults.include(resource_patterns)))60# Job feeds61debug_patterns += defaults.patterns(62 '',63 (r'^model_doc/', 'autotest.frontend.afe.views.model_documentation'),64 (r'^feeds/(?P<url>.*)/$', 'autotest.frontend.afe.feeds.feed.feed_view',65 {'feed_dict': feeds})66)67if settings.DEBUG:...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!